Fix emoji_reaction in feather more
This commit is contained in:
parent
b43135db83
commit
c382e94c8d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue