From 344c7e5cbd905c27bdfd1c2c499b660e16995066 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 31 Mar 2023 12:16:25 +0200 Subject: [bugfix] Fix relationship not updating 'following' on accept follow request (#1658) --- internal/cache/cache.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/cache/cache.go') diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 913d6eca7..c1f419d22 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -102,6 +102,9 @@ func (c *Caches) setuphooks() { // Invalidate follow request target account ID cached visibility. c.Visibility.Invalidate("ItemID", followReq.TargetAccountID) c.Visibility.Invalidate("RequesterID", followReq.TargetAccountID) + + // Invalidate any cached follow corresponding to this request. + c.GTS.Follow().Invalidate("AccountID.TargetAccountID", followReq.AccountID, followReq.TargetAccountID) }) c.GTS.Status().SetInvalidateCallback(func(status *gtsmodel.Status) { -- cgit v1.2.3