diff options
author | 2023-04-26 17:17:22 +0200 | |
---|---|---|
committer | 2023-04-26 16:17:22 +0100 | |
commit | 6b4f6dc7555e4a4a632ee1654596b8ed4d09853e (patch) | |
tree | b168528d0a0003e908b16192882dbe5e4752448a /internal/processing | |
parent | [docs] Migrates Chart Location (#1708) (diff) | |
download | gotosocial-6b4f6dc7555e4a4a632ee1654596b8ed4d09853e.tar.xz |
[bugfix] Fix remaining mangled URI escaping issues in statuses + accounts (#1712)
* start fiddling with normalize + extract functions
* normalize attachment name (image description)
* NormalizeAccountableSummary
* normalize summary + name
Diffstat (limited to 'internal/processing')
-rw-r--r-- | internal/processing/fromfederator.go | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/internal/processing/fromfederator.go b/internal/processing/fromfederator.go index 55e85a526..929ef824f 100644 --- a/internal/processing/fromfederator.go +++ b/internal/processing/fromfederator.go @@ -373,15 +373,11 @@ func (p *Processor) processUpdateAccountFromFederator(ctx context.Context, feder return errors.New("profile was not parseable as *gtsmodel.Account") } - incomingAccountURL, err := url.Parse(incomingAccount.URI) - if err != nil { - return err - } - - // further database updates occur inside getremoteaccount - if _, err := p.federator.GetAccountByURI(ctx, + // Call UpdateAccount with force to reflect that + // we want to fetch new bio, avatar, header, etc. + if _, err := p.federator.UpdateAccount(ctx, federatorMsg.ReceivingAccount.Username, - incomingAccountURL, + incomingAccount, true, ); err != nil { return fmt.Errorf("error enriching updated account from federator: %s", err) |