1
0
Fork 0
forked from gitea/nas

Fix custom emoji in notification

This commit is contained in:
KMY 2023-02-27 14:53:30 +09:00
parent 20b0f17d98
commit 5beb8b33de
2 changed files with 37 additions and 1 deletions

View file

@ -6,7 +6,7 @@ class REST::NotificationSerializer < ActiveModel::Serializer
belongs_to :from_account, key: :account, serializer: REST::AccountSerializer
belongs_to :target_status, key: :status, if: :status_type?, serializer: REST::StatusSerializer
belongs_to :report, if: :report_type?, serializer: REST::ReportSerializer
belongs_to :emoji_reaction, if: :emoji_reaction_type?, serializer: REST::EmojiReactionSerializer
belongs_to :emoji_reaction, if: :emoji_reaction_type?, serializer: REST::NotifyEmojiReactionSerializer
def id
object.id.to_s