Debug undo.rb

This commit is contained in:
KMY 2023-02-27 10:48:50 +09:00
parent df0b8723d7
commit bf6e427160

View file

@ -125,7 +125,7 @@ class ActivityPub::Activity::Undo < ActivityPub::Activity
emoji = CustomEmoji.find_by(shortcode: shortcode, domain: @account.domain)
end
emoji_reaction = @original_status.emoji_reactions.where(account: @account, name: shortcode, custom_emoji: emoji).first&
emoji_reaction = @original_status.emoji_reactions.where(account: @account, name: shortcode, custom_emoji: emoji).first
if emoji_reaction
emoji_reaction.destroy