Change emoji reaction type from EmojiReact to Like

This commit is contained in:
noellabo 2022-12-02 21:15:08 +09:00
parent 92c2bbcc0a
commit 531fa67246

View file

@ -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