Change activitypub type Like to EmojiReact
This commit is contained in:
parent
68c7def8d3
commit
546c2417e9
@ -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
|
||||
|
@ -45,8 +45,12 @@ class ActivityPub::TagManager
|
||||
account_status_url(target.account, target)
|
||||
when :emoji
|
||||
emoji_url(target)
|
||||
|
||||
when :flag
|
||||
target.uri
|
||||
|
||||
when :emoji_reaction
|
||||
emoji_reaction_url(target)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user