about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-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.")