mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
fix: missed handling zset on ap unfollow
This commit is contained in:
@@ -126,6 +126,7 @@ activitypubApi.unfollow = enabledCheck(async (caller, { type, id, actor }) => {
|
|||||||
await Promise.all([
|
await Promise.all([
|
||||||
db.sortedSetRemove(`followingRemote:${id}`, actor),
|
db.sortedSetRemove(`followingRemote:${id}`, actor),
|
||||||
db.sortedSetRemove(`followRequests:uid.${id}`, actor),
|
db.sortedSetRemove(`followRequests:uid.${id}`, actor),
|
||||||
|
db.sortedSetRemove(`followersRemote:${actor}`, id),
|
||||||
db.decrObjectField(`user:${id}`, 'followingRemoteCount'),
|
db.decrObjectField(`user:${id}`, 'followingRemoteCount'),
|
||||||
]);
|
]);
|
||||||
} else if (type === 'cid') {
|
} else if (type === 'cid') {
|
||||||
|
|||||||
Reference in New Issue
Block a user