1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Add :display_name

This commit is contained in:
Bei Li 2024-04-12 10:47:01 +09:00
parent d56ae18243
commit 33c1e2858e

View file

@ -6,7 +6,7 @@ class Web::NotificationSerializer < ActiveModel::Serializer
include ActionView::Helpers::SanitizeHelper include ActionView::Helpers::SanitizeHelper
attributes :access_token, :preferred_locale, :notification_id, attributes :access_token, :preferred_locale, :notification_id,
:notification_type, :icon, :title, :body :notification_type, :icon, :display_name, :title, :body
def access_token def access_token
current_push_subscription.associated_access_token current_push_subscription.associated_access_token