mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Fix duplicating fields on profile edit (#1788)
* [bugfix] Fix duplicating fields on profile edit * test non-duplicate fields
This commit is contained in:
@ -155,6 +155,7 @@ func (p *Processor) Update(ctx context.Context, account *gtsmodel.Account, form
|
||||
}
|
||||
|
||||
// Process the raw fields we stored earlier.
|
||||
account.Fields = make([]*gtsmodel.Field, 0, len(account.FieldsRaw))
|
||||
for _, fieldRaw := range account.FieldsRaw {
|
||||
field := >smodel.Field{}
|
||||
|
||||
|
Reference in New Issue
Block a user