diff options
Diffstat (limited to 'internal/cache/cache.go')
-rw-r--r-- | internal/cache/cache.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |