diff options
Diffstat (limited to 'internal/processing/account/rss.go')
-rw-r--r-- | internal/processing/account/rss.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/internal/processing/account/rss.go b/internal/processing/account/rss.go index cbbb4875b..60f93b012 100644 --- a/internal/processing/account/rss.go +++ b/internal/processing/account/rss.go @@ -70,11 +70,9 @@ func (p *Processor) GetRSSFeedForUsername(ctx context.Context, username string) } // Ensure account stats populated. - if account.Stats == nil { - if err := p.state.DB.PopulateAccountStats(ctx, account); err != nil { - err = gtserror.Newf("db error getting account stats %s: %w", username, err) - return nil, never, gtserror.NewErrorInternalError(err) - } + if err := p.state.DB.PopulateAccountStats(ctx, account); err != nil { + err = gtserror.Newf("db error getting account stats %s: %w", username, err) + return nil, never, gtserror.NewErrorInternalError(err) } // LastModified time is needed by callers to check freshness for cacheing. |