diff --git a/app/serializers/rest/notify_emoji_reaction_serializer.rb b/app/serializers/rest/notify_emoji_reaction_serializer.rb index 67f923f06e..6f2b99a0c8 100644 --- a/app/serializers/rest/notify_emoji_reaction_serializer.rb +++ b/app/serializers/rest/notify_emoji_reaction_serializer.rb @@ -11,6 +11,7 @@ class REST::NotifyEmojiReactionSerializer < ActiveModel::Serializer attribute :domain, if: :custom_emoji? attribute :width, if: :width? attribute :height, if: :height? + attribute :me def count? object.respond_to?(:count) @@ -55,4 +56,8 @@ class REST::NotifyEmojiReactionSerializer < ActiveModel::Serializer def height object.custom_emoji.respond_to?(:image_height) ? object.custom_emoji.image_height : object.custom_emoji.height end + + def me + false + end end