mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-25 22:00:35 +01:00
fix: call syncfollowcounts on unfollow as well
This commit is contained in:
@@ -471,7 +471,8 @@ Out.undo.follow = enabledCheck(async (type, id, actor) => {
|
||||
db.sortedSetRemove(`followingRemote:${id}`, actor),
|
||||
db.sortedSetRemove(`followRequests:uid.${id}`, actor),
|
||||
db.sortedSetRemove(`followersRemote:${actor}`, id),
|
||||
db.decrObjectField(`user:${id}`, 'followingRemoteCount'),
|
||||
user.syncFollowCounts(id, true, false),
|
||||
user.syncFollowCounts(actor, false, true),
|
||||
]);
|
||||
} else if (type === 'cid') {
|
||||
await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user