diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-18 02:55:23 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-18 02:57:11 -0600 |
commit | a38d8ec3ed3accf8789a774fd5d03c6b940095ea (patch) | |
tree | 1891ca383106ecc5848ba7fe2b2c40be4465f25d | |
parent | 1e83cd019eaaba65c1d579df5ce55e373975f70a (diff) |
fix spelling
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 88ee91801..e85568ebc 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -537,7 +537,7 @@ class User < ApplicationRecord return unless defanged_changed? && !last_fanged_at_changed? self.last_fanged_at = (defanged? ? nil : Time.now.utc) - return unless usernme&.account? + return if self&.account.nil? if defanged? LogWorker.perform_async("\u23ec <#{self.account.username}> is no longer in fanged #{role} mode.") |