Update app/services/user_silencer.rb

Update app/services/user_silencer.rb

Co-Authored-By: eviltrout robin.ward@gmail.com

diff --git a/app/services/user_silencer.rb b/app/services/user_silencer.rb
index be1bbeb..9e452cd 100644
--- a/app/services/user_silencer.rb
+++ b/app/services/user_silencer.rb
@@ -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

GitHub sha: 7aecd3c2

1 Like