[bugfix/chore] Invalidate prepared statuses when account representation changes (#4107)

This pull requests adds logic to invalidate prepared statuses when an account's representation changes due to an update.

Closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4104

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4107
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
tobi
2025-05-02 16:01:30 +00:00
committed by kim
parent 1bad36b637
commit 1480f22aea
3 changed files with 12 additions and 0 deletions

View File

@ -750,6 +750,9 @@ func (p *clientAPI) UpdateAccount(ctx context.Context, cMsg *messages.FromClient
log.Errorf(ctx, "error federating account update: %v", err)
}
// Account representation has changed, invalidate from timelines.
p.surface.invalidateTimelineEntriesByAccount(account.ID)
return nil
}