mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user