summaryrefslogtreecommitdiff
path: root/internal/processing/fromfederator.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/fromfederator.go')
-rw-r--r--internal/processing/fromfederator.go12
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)