Node.js based forum software built for the modern web
fix: missed handling zset on ap unfollow
Julian Lamb20a6ed0d700
diff --git a/src/api/activitypub.js b/src/api/activitypub.jsindex ce78f12d23..57a9bfe287 100644--- a/src/api/activitypub.js+++ b/src/api/activitypub.js@@ -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') {