mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +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([
|
||||
db.sortedSetRemove(`followingRemote:${id}`, actor),
|
||||
db.sortedSetRemove(`followRequests:uid.${id}`, actor),
|
||||
db.sortedSetRemove(`followersRemote:${actor}`, id),
|
||||
db.decrObjectField(`user:${id}`, 'followingRemoteCount'),
|
||||
]);
|
||||
} else if (type === 'cid') {
|
||||
|
||||
Reference in New Issue
Block a user