about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-03-08 12:39:07 -0500
committermultiple creatures <dev@multiple-creature.party>2020-03-08 12:39:07 -0500
commita091c324a3bb6e2103231b66a71e4de5d872e08a (patch)
treebfb82a6700dbac89732c3112cf16ef68c3c1dafe
parentca1052059372027d05a6133b95176b40954355d7 (diff)
add parenthesis to `froze?` logic for clarity
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 76ffdfc07..caa5dffac 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -200,7 +200,7 @@ class Account < ApplicationRecord
   end
 
   def froze?
-    local? ? (self&.user.nil? ? true : user.disabled?) : froze || !known
+    (local? ? (self&.user.nil? ? true : user.disabled?) : froze) || !known
   end
 
   def bot?