diff options
Diffstat (limited to 'internal/federation/dereferencing/account.go')
-rw-r--r-- | internal/federation/dereferencing/account.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go index 65436f9ea..3abf628d1 100644 --- a/internal/federation/dereferencing/account.go +++ b/internal/federation/dereferencing/account.go @@ -984,10 +984,8 @@ func (d *Dereferencer) dereferenceAccountStats( account *gtsmodel.Account, ) error { // Ensure we have a stats model for this account. - if account.Stats == nil { - if err := d.state.DB.PopulateAccountStats(ctx, account); err != nil { - return gtserror.Newf("db error getting account stats: %w", err) - } + if err := d.state.DB.PopulateAccountStats(ctx, account); err != nil { + return gtserror.Newf("db error getting account stats: %w", err) } // We want to update stats by getting remote |