diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-03-08 12:39:07 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-03-08 12:39:07 -0500 |
commit | a091c324a3bb6e2103231b66a71e4de5d872e08a (patch) | |
tree | bfb82a6700dbac89732c3112cf16ef68c3c1dafe | |
parent | ca1052059372027d05a6133b95176b40954355d7 (diff) |
add parenthesis to `froze?` logic for clarity
-rw-r--r-- | app/models/account.rb | 2 |
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? |