mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-29 09:03:43 +01:00
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:
parent
473620cdb1
commit
9309a20117
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class ActivityPub::Activity::EmojiReact < ActivityPub::Activity
|
||||||
|
|
||||||
if /^:.*:$/.match?(name)
|
if /^:.*:$/.match?(name)
|
||||||
name.delete! ':'
|
name.delete! ':'
|
||||||
custom_emoji = process_emoji_tags(@json['tag'])
|
custom_emoji = process_emoji_tags(name, @json['tag'])
|
||||||
|
|
||||||
return if custom_emoji.nil?
|
return if custom_emoji.nil?
|
||||||
end
|
end
|
||||||
|
|
|
@ -24,7 +24,7 @@ class ActivityPub::Activity::Like < ActivityPub::Activity
|
||||||
|
|
||||||
if /^:.*:$/.match?(name)
|
if /^:.*:$/.match?(name)
|
||||||
name.delete! ':'
|
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
|
return false if custom_emoji.nil? # invalid custom emoji, treat it as a regular like
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue