Node.js based forum software built for the modern web
dont make db call if ap disabled
Barış Soner Uşaklı97a232e9d5d1
diff --git a/src/user/index.js b/src/user/index.jsindex 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;