Skip to content

Commit

Permalink
ensure the requester's account is populated before status edits
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaaaWhatsUpDoc committed Dec 23, 2024
1 parent 587c12a commit a6e3b97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/processing/status/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ func (p *Processor) Edit(
)
}

// Ensure account populated; we'll need their settings.
if err := p.state.DB.PopulateAccount(ctx, requester); err != nil {
log.Errorf(ctx, "error(s) populating account, will continue: %s", err)
}

// We need the status populated including all historical edits.
if err := p.state.DB.PopulateStatusEdits(ctx, status); err != nil {
err := gtserror.Newf("error getting status edits from db: %w", err)
Expand Down

0 comments on commit a6e3b97

Please sign in to comment.