Skip to content

Node.js based forum software built for the modern web

Revert "fix: eliminate infinite loop in actors.assert via user.getUsersFields"

Julian Lam827a91ea6bd5
diff --git a/src/activitypub/actors.js b/src/activitypub/actors.js
index af0a5103d0..eee79bef14 100644
--- a/src/activitypub/actors.js
+++ b/src/activitypub/actors.js
@@ -156,7 +156,7 @@ Actors.assert = async (ids, options = {}) => {
const exists = await db.isSortedSetMembers('usersRemote:lastCrawled', profiles.map(p => p.uid));
const uidsForCurrent = profiles.map((p, idx) => (exists[idx] ? p.uid : 0));
- const current = await db.getObjectsFields(uidsForCurrent.map(id => `userRemote:${id}`), ['username', 'fullname']);
+ const current = await user.getUsersFields(uidsForCurrent, ['username', 'fullname']);
const queries = profiles.reduce((memo, profile, idx) => {
const { username, fullname } = current[idx];