Update app/services/user_silencer.rb

Co-Authored-By: eviltrout <robin.ward@gmail.com>
This commit is contained in:
Régis Hanol 2019-02-08 08:50:29 -05:00 committed by Robin Ward
parent bc3efab816
commit 7aecd3c2f5
1 changed files with 1 additions and 1 deletions

View File

@ -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