diff options
author | 2023-03-31 12:16:25 +0200 | |
---|---|---|
committer | 2023-03-31 11:16:25 +0100 | |
commit | 344c7e5cbd905c27bdfd1c2c499b660e16995066 (patch) | |
tree | 8849a942d0f6a5f4b05d78c35e11f1621fa9523f /internal/cache/cache.go | |
parent | [docs] Add MASH as 3rd party packaging (#1654) (diff) | |
download | gotosocial-344c7e5cbd905c27bdfd1c2c499b660e16995066.tar.xz |
[bugfix] Fix relationship not updating 'following' on accept follow request (#1658)
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) { |