diff options
author | 2023-05-15 12:52:40 +0200 | |
---|---|---|
committer | 2023-05-15 12:52:40 +0200 | |
commit | 17b9a937b17b950a69d6523169209a6bb34b534c (patch) | |
tree | 8c2e405a1dc14ebcc3fbd420a3554ac04744524d /internal/processing/account/update.go | |
parent | [chore]: Bump golang.org/x/oauth2 from 0.7.0 to 0.8.0 (#1785) (diff) | |
download | gotosocial-17b9a937b17b950a69d6523169209a6bb34b534c.tar.xz |
[bugfix] Fix duplicating fields on profile edit (#1788)
* [bugfix] Fix duplicating fields on profile edit
* test non-duplicate fields
Diffstat (limited to 'internal/processing/account/update.go')
-rw-r--r-- | internal/processing/account/update.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/processing/account/update.go b/internal/processing/account/update.go index 0baeebb6a..d7018367d 100644 --- a/internal/processing/account/update.go +++ b/internal/processing/account/update.go @@ -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{} |