@ -125,13 +125,9 @@ class Account < ApplicationRecord
def save_with_optional_avatar!
save!
rescue ActiveRecord::RecordInvalid => invalid
if invalid.record.errors[:avatar_file_size] || invalid.record.errors[:avatar_content_type]
rescue ActiveRecord::RecordInvalid
self.avatar = nil
retry
end
raise invalid
def avatar_remote_url=(url)