Add avatar_url so we always get an avatar even when the user hasn't set one
This commit is contained in:
committed by
Rosa Gutierrez
parent
6ec3cc6f2c
commit
113e61d418
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user