From 6b4f6dc7555e4a4a632ee1654596b8ed4d09853e Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 26 Apr 2023 17:17:22 +0200 Subject: [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 --- internal/processing/fromfederator.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'internal/processing/fromfederator.go') 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) -- cgit v1.2.3