about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-18 02:55:23 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-18 02:57:11 -0600
commita38d8ec3ed3accf8789a774fd5d03c6b940095ea (patch)
tree1891ca383106ecc5848ba7fe2b2c40be4465f25d
parent1e83cd019eaaba65c1d579df5ce55e373975f70a (diff)
fix spelling
-rw-r--r--app/models/user.rb2
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.")