From 1480f22aeaac1772bb9a98c0db6e9a13ff2761e1 Mon Sep 17 00:00:00 2001 From: tobi Date: Fri, 2 May 2025 16:01:30 +0000 Subject: [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 Co-committed-by: tobi --- internal/processing/workers/fromclientapi.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/processing/workers/fromclientapi.go') diff --git a/internal/processing/workers/fromclientapi.go b/internal/processing/workers/fromclientapi.go index 8cd67dd2a..0e27eea0e 100644 --- a/internal/processing/workers/fromclientapi.go +++ b/internal/processing/workers/fromclientapi.go @@ -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 } -- cgit v1.2.3