diff --git a/src/user/index.js b/src/user/index.js index 0347ccaad3..5e4c08e39f 100644 --- a/src/user/index.js +++ b/src/user/index.js @@ -48,7 +48,7 @@ User.exists = async function (uids) { const [localExists, remoteExists] = await Promise.all([ db.isSortedSetMembers('users:joindate', uids), - db.exists(uids.map(uid => `userRemote:${uid}`)), + meta.config.activitypubEnabled ? db.exists(uids.map(uid => `userRemote:${uid}`)) : uids.map(() => false), ]); const results = localExists.map((local, idx) => local || remoteExists[idx]); return singular ? results.pop() : results;