[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
This commit is contained in:
tobi
2023-04-26 17:17:22 +02:00
committed by GitHub
parent ae9d432f13
commit 6b4f6dc755
6 changed files with 498 additions and 49 deletions

View File

@@ -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)