Add missing name param.

Follow-up to 3a91f535faf654ac2abf2c0232a7c1bd4216a8d7
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 473620cdb1
commit 9309a20117
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