Add avatar_url so we always get an avatar even when the user hasn't set one

This commit is contained in:
Fernando Olivares
2026-01-25 21:23:57 -06:00
committed by Rosa Gutierrez
parent 6ec3cc6f2c
commit 113e61d418
2 changed files with 5 additions and 7 deletions
@@ -31,6 +31,10 @@ class Notification::DefaultPayload
false
end
def avatar_url
Rails.application.routes.url_helpers.user_avatar_url(notification.creator, **url_options)
end
private
def card_url(card)
Rails.application.routes.url_helpers.card_url(card, **url_options)