From 9309a20117523254e914c97536f248f6d4592c4a Mon Sep 17 00:00:00 2001 From: Plastikmensch Date: Sat, 27 May 2023 13:09:48 +0200 Subject: [PATCH] Add missing `name` param. Follow-up to 3a91f535faf654ac2abf2c0232a7c1bd4216a8d7 Missed these while porting changes. Signed-off-by: Plastikmensch --- app/lib/activitypub/activity/emoji_react.rb | 2 +- app/lib/activitypub/activity/like.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/activitypub/activity/emoji_react.rb b/app/lib/activitypub/activity/emoji_react.rb index f5b5a8076b..c9d88bc51c 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 7ea571d03e..86d70e0d70 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