about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-16 19:36:32 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-16 19:36:32 +0100
commit6cf44ca92c3b92df5bda32adb59258104f1ac9c5 (patch)
treeb3fba7c5a6ca93cf375d14ea0e8750d9b0686dbd /app/models
parent99fe89026cef8e7a0eb66892fc17cf20e6036c95 (diff)
Improve how the list entry Account component looks when target is blocked/follow is requested
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 5f07615fc..5d6324a7b 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -126,7 +126,7 @@ class Account < ApplicationRecord
   def save_with_optional_avatar!
     save!
   rescue ActiveRecord::RecordInvalid => invalid
-    if invalid.record.errors[:avatar_file_size] || invalid[:avatar_content_type]
+    if invalid.record.errors[:avatar_file_size] || invalid.record.errors[:avatar_content_type]
       self.avatar = nil
       retry
     end