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:
parent
87c1a75191
commit
f1f8012745
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue