From a6e3b97474d581ae2a71cc1bebacbb6a238ed75a Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 23 Dec 2024 13:19:56 +0000 Subject: [PATCH] ensure the requester's account is populated before status edits --- internal/processing/status/edit.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/processing/status/edit.go b/internal/processing/status/edit.go index 79f541b99..807c1e77b 100644 --- a/internal/processing/status/edit.go +++ b/internal/processing/status/edit.go @@ -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)