Change emoji reaction type from EmojiReact to Like
This commit is contained in:
parent
92c2bbcc0a
commit
531fa67246
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ class ActivityPub::EmojiReactionSerializer < ActivityPub::Serializer
|
|||
end
|
||||
|
||||
def type
|
||||
object.custom_emoji.nil? ? 'EmojiReact' : 'Like'
|
||||
'Like'
|
||||
end
|
||||
|
||||
def actor
|
||||
|
@ -25,6 +25,7 @@ class ActivityPub::EmojiReactionSerializer < ActivityPub::Serializer
|
|||
def content
|
||||
object.custom_emoji.nil? ? object.name : ":#{object.name}:"
|
||||
end
|
||||
|
||||
def virtual_tags
|
||||
[object.custom_emoji]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue