Change activitypub type Like to EmojiReact
This commit is contained in:
parent
d538d2a2a3
commit
3053f30683
3 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,7 @@ class ActivityPub::Activity
|
|||
ActivityPub::Activity::Delete
|
||||
when 'Follow'
|
||||
ActivityPub::Activity::Follow
|
||||
when 'Like'
|
||||
when 'Like', 'EmojiReaction', 'EmojiReact'
|
||||
ActivityPub::Activity::Like
|
||||
when 'Block'
|
||||
ActivityPub::Activity::Block
|
||||
|
|
|
@ -127,7 +127,7 @@ class ActivityPub::Activity::Undo < ActivityPub::Activity
|
|||
|
||||
if @account.reacted?(@original_status, shortcode, emoji)
|
||||
@original_status.emoji_reactions.where(account: @account, name: shortcode, custom_emoji: emoji).first&.destroy
|
||||
|
||||
|
||||
if @original_status.account.local?
|
||||
forward_for_undo_emoji_reaction
|
||||
relay_for_undo_emoji_reaction
|
||||
|
|
|
@ -43,6 +43,8 @@ class ActivityPub::TagManager
|
|||
account_status_url(target.account, target)
|
||||
when :emoji
|
||||
emoji_url(target)
|
||||
when :emoji_reaction
|
||||
emoji_reaction_url(target)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue