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
55199ec150
commit
3dc590a327
|
@ -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