mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix setting up fields of a previously suspended account (#10222)
Fix #10177 for real
This commit is contained in:
parent
d36fcb54c4
commit
3f4a6d44fe
@ -266,6 +266,7 @@ class Account < ApplicationRecord
|
||||
return if fields.size >= DEFAULT_FIELDS_SIZE
|
||||
|
||||
tmp = self[:fields] || []
|
||||
tmp = [] if tmp.is_a?(Hash)
|
||||
|
||||
(DEFAULT_FIELDS_SIZE - tmp.size).times do
|
||||
tmp << { name: '', value: '' }
|
||||
|
Loading…
Reference in New Issue
Block a user