mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-08 02:28:07 -06:00
[bugfix] Fix relationship not updating 'following' on accept follow request (#1658)
This commit is contained in:
parent
fe4ea964cd
commit
344c7e5cbd
3 changed files with 33 additions and 9 deletions
3
internal/cache/cache.go
vendored
3
internal/cache/cache.go
vendored
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue