Skip to content

Commit

Permalink
Fix: 条件
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Nov 8, 2023
1 parent 2e1d05f commit 7c51384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/validators/emoji_reaction_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def deny_emoji_reactions?(emoji_reaction)
end

def blocking?(emoji_reaction)
return false if emoji_reaction.status.account == emoji_reaction.account
return false if !emoji_reaction.status.local? || emoji_reaction.status.account == emoji_reaction.account

emoji_reaction.status.account.blocking?(emoji_reaction.account)
end

def domain_blocking?(emoji_reaction)
return false if emoji_reaction.account.local? || !emoji_reaction.status.account.local?
return false unless !emoji_reaction.account.local? && emoji_reaction.status.local?

emoji_reaction.status.account.domain_blocking?(emoji_reaction.account.domain)
end
Expand Down

0 comments on commit 7c51384

Please sign in to comment.