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/account.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 621a66e24..c2a41c4c6 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -126,7 +126,8 @@ class Account < ApplicationRecord
   def save_with_optional_avatar!
     save!
   rescue ActiveRecord::RecordInvalid
-    self.avatar = nil
+    self.avatar              = nil
+    self[:avatar_remote_url] = ''
     save!
   end