Add missing name param.

Follow-up to 3a91f535fa
Missed these while porting changes.

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
Plastikmensch 2023-05-27 13:09:48 +02:00 committed by Jeremy Kescher
parent 55199ec150
commit 3dc590a327
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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