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
|
ActivityPub::Activity::Delete
|
||||||
when 'Follow'
|
when 'Follow'
|
||||||
ActivityPub::Activity::Follow
|
ActivityPub::Activity::Follow
|
||||||
when 'Like'
|
when 'Like', 'EmojiReaction', 'EmojiReact'
|
||||||
ActivityPub::Activity::Like
|
ActivityPub::Activity::Like
|
||||||
when 'Block'
|
when 'Block'
|
||||||
ActivityPub::Activity::Block
|
ActivityPub::Activity::Block
|
||||||
|
@ -127,7 +127,7 @@ class ActivityPub::Activity::Undo < ActivityPub::Activity
|
|||||||
|
|
||||||
if @account.reacted?(@original_status, shortcode, emoji)
|
if @account.reacted?(@original_status, shortcode, emoji)
|
||||||
@original_status.emoji_reactions.where(account: @account, name: shortcode, custom_emoji: emoji).first&.destroy
|
@original_status.emoji_reactions.where(account: @account, name: shortcode, custom_emoji: emoji).first&.destroy
|
||||||
|
|
||||||
if @original_status.account.local?
|
if @original_status.account.local?
|
||||||
forward_for_undo_emoji_reaction
|
forward_for_undo_emoji_reaction
|
||||||
relay_for_undo_emoji_reaction
|
relay_for_undo_emoji_reaction
|
||||||
|
@ -45,8 +45,12 @@ class ActivityPub::TagManager
|
|||||||
account_status_url(target.account, target)
|
account_status_url(target.account, target)
|
||||||
when :emoji
|
when :emoji
|
||||||
emoji_url(target)
|
emoji_url(target)
|
||||||
|
|
||||||
when :flag
|
when :flag
|
||||||
target.uri
|
target.uri
|
||||||
|
|
||||||
|
when :emoji_reaction
|
||||||
|
emoji_reaction_url(target)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user