diff --git a/app/lib/activitypub/activity/emoji_react.rb b/app/lib/activitypub/activity/emoji_react.rb index f5b5a8076..c9d88bc51 100644 --- a/app/lib/activitypub/activity/emoji_react.rb +++ b/app/lib/activitypub/activity/emoji_react.rb @@ -10,7 +10,7 @@ class ActivityPub::Activity::EmojiReact < ActivityPub::Activity if /^:.*:$/.match?(name) name.delete! ':' - custom_emoji = process_emoji_tags(@json['tag']) + custom_emoji = process_emoji_tags(name, @json['tag']) return if custom_emoji.nil? end diff --git a/app/lib/activitypub/activity/like.rb b/app/lib/activitypub/activity/like.rb index 7ea571d03..86d70e0d7 100644 --- a/app/lib/activitypub/activity/like.rb +++ b/app/lib/activitypub/activity/like.rb @@ -24,7 +24,7 @@ class ActivityPub::Activity::Like < ActivityPub::Activity if /^:.*:$/.match?(name) name.delete! ':' - custom_emoji = process_emoji_tags(@json['tag']) + custom_emoji = process_emoji_tags(name, @json['tag']) return false if custom_emoji.nil? # invalid custom emoji, treat it as a regular like end