We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac99b34 commit d785497Copy full SHA for d785497
2 files changed
app/models/account.rb
@@ -241,6 +241,7 @@ def fields
241
def fields_attributes=(attributes)
242
fields = []
243
old_fields = self[:fields] || []
244
+ old_fields = [] if old_fields.is_a?(Hash)
245
246
if attributes.is_a?(Hash)
247
attributes.each_value do |attr|
app/services/suspend_account_service.rb
@@ -84,7 +84,7 @@ def purge_profile!
84
@account.locked = false
85
@account.display_name = ''
86
@account.note = ''
87
- @account.fields = {}
+ @account.fields = []
88
@account.statuses_count = 0
89
@account.followers_count = 0
90
@account.following_count = 0
0 commit comments