Fix emoji_reaction in feather more

This commit is contained in:
KMY 2023-06-01 08:51:27 +09:00
parent b43135db83
commit c382e94c8d

View file

@ -11,6 +11,7 @@ class REST::NotifyEmojiReactionSerializer < ActiveModel::Serializer
attribute :domain, if: :custom_emoji? attribute :domain, if: :custom_emoji?
attribute :width, if: :width? attribute :width, if: :width?
attribute :height, if: :height? attribute :height, if: :height?
attribute :me
def count? def count?
object.respond_to?(:count) object.respond_to?(:count)
@ -55,4 +56,8 @@ class REST::NotifyEmojiReactionSerializer < ActiveModel::Serializer
def height def height
object.custom_emoji.respond_to?(:image_height) ? object.custom_emoji.image_height : object.custom_emoji.height object.custom_emoji.respond_to?(:image_height) ? object.custom_emoji.image_height : object.custom_emoji.height
end end
def me
false
end
end end