Update app/services/user_silencer.rb
Co-Authored-By: eviltrout <robin.ward@gmail.com>
This commit is contained in:
parent
bc3efab816
commit
7aecd3c2f5
|
@ -17,7 +17,7 @@ class UserSilencer
|
|||
end
|
||||
|
||||
def self.was_silenced_for?(post)
|
||||
return false unless post.present?
|
||||
return false if post.blank?
|
||||
|
||||
UserHistory.where(action: UserHistory.actions[:silence_user], post: post).exists?
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue