Skip to content

Node.js based forum software built for the modern web

fix: lol

Julian Lam983153fbba09
diff --git a/src/upgrades/4.0.0/remote_user_urls.js b/src/upgrades/4.0.0/remote_user_urls.js
index 1ae2644d90..9a9aa8b8a3 100644
--- a/src/upgrades/4.0.0/remote_user_urls.js
+++ b/src/upgrades/4.0.0/remote_user_urls.js
@@ -16,7 +16,7 @@ module.exports = {
let actorIds = await db.getSortedSetMembers('usersRemote:lastCrawled');
progress.total = actorIds.length;
const exists = await Promise.all(actorIds.map(async id => await db.isObjectField(`userRemote:${id}`, 'url')));
- actorIds = actorIds.filter((id, idx) => exists[idx]);
+ actorIds = actorIds.filter((id, idx) => !exists[idx]);
// Increment ones that were already completed
progress.incr(progress.total - actorIds.length);