From 7e45168d331401f2fedb25b8fd04f539ca723d04 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 30 Jul 2025 17:54:07 +0200 Subject: [feature] add streaming of statuses and status updates to LOCAL / PUBLIC timelines (#4353) This adds streaming of statuses and edits to LOCAL and PUBLIC timeline types. Note that in the future we should probably rearrange some of the surface code so we don't perform so many repeated mute and visibility checks on the same status in sequence. closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4342 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4353 Co-authored-by: kim Co-committed-by: kim --- internal/cache/invalidate.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/cache/invalidate.go') diff --git a/internal/cache/invalidate.go b/internal/cache/invalidate.go index 569238e9b..863719b77 100644 --- a/internal/cache/invalidate.go +++ b/internal/cache/invalidate.go @@ -365,7 +365,8 @@ func (c *Caches) OnInvalidateUser(user *gtsmodel.User) { c.Visibility.Invalidate("ItemID", user.AccountID) c.Visibility.Invalidate("RequesterID", user.AccountID) - // Invalidate the local users count. + // Invalidate the local user IDs / count. + c.DB.LocalInstance.UserIDs.Store(nil) c.DB.LocalInstance.Users.Store(nil) } -- cgit v1.2.3