mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 00:36:14 -06:00
ensure the requester's account is populated before status edits
This commit is contained in:
parent
587c12a3cc
commit
a6e3b97474
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
// We need the status populated including all historical edits.
|
||||||
if err := p.state.DB.PopulateStatusEdits(ctx, status); err != nil {
|
if err := p.state.DB.PopulateStatusEdits(ctx, status); err != nil {
|
||||||
err := gtserror.Newf("error getting status edits from db: %w", err)
|
err := gtserror.Newf("error getting status edits from db: %w", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue