mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: include follower sets for reassertion
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = {
|
|||||||
db.getSortedSetsMembers(uids.map(uid => `followingRemote:${uid}`)),
|
db.getSortedSetsMembers(uids.map(uid => `followingRemote:${uid}`)),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const toCheck = Array.from(new Set(_following.flat()));
|
const toCheck = Array.from(new Set(_followers.flat().concat(_following.flat())));
|
||||||
const asserted = await db.isSortedSetMembers('usersRemote:lastCrawled', toCheck);
|
const asserted = await db.isSortedSetMembers('usersRemote:lastCrawled', toCheck);
|
||||||
reassert.push(...toCheck.filter((actor, idx) => !asserted[idx]));
|
reassert.push(...toCheck.filter((actor, idx) => !asserted[idx]));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user