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.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/internal/processing/fromfederator.go b/internal/processing/fromfederator.go
index ecb7934c9..f91f5ae8b 100644
--- a/internal/processing/fromfederator.go
+++ b/internal/processing/fromfederator.go
@@ -379,8 +379,8 @@ func (p *Processor) processUpdateAccountFromFederator(ctx context.Context, feder
return errors.New("Accountable was not parseable on update account message")
}
- // Call RefreshAccount to fetch up-to-date bio, avatar, header, etc.
- updatedAccount, _, err := p.federator.RefreshAccount(
+ // Fetch up-to-date bio, avatar, header, etc.
+ _, _, err := p.federator.RefreshAccount(
ctx,
federatorMsg.ReceivingAccount.Username,
incomingAccount,
@@ -391,11 +391,6 @@ func (p *Processor) processUpdateAccountFromFederator(ctx context.Context, feder
return fmt.Errorf("error enriching updated account from federator: %s", err)
}
- // RefreshAccount doesn't make DB update calls, so do that here.
- if err := p.state.DB.UpdateAccount(ctx, updatedAccount); err != nil {
- return fmt.Errorf("error enriching updated account from federator: %s", err)
- }
-
return nil
}