Node.js based forum software built for the modern web
fix: isDraft logic, closes #13119
Barış Soner Uşaklı21156673e3a2
diff --git a/src/topics/thumbs.js b/src/topics/thumbs.jsindex 5e7b5248b0..1fe985a270 100644--- a/src/topics/thumbs.js+++ b/src/topics/thumbs.js@@ -55,7 +55,7 @@ Thumbs.get = async function (tids, options) {};}- const isDraft = !await topics.exists(tids);+ const isDraft = (await topics.exists(tids)).map(exists => !exists);if (!meta.config.allowTopicsThumbnail || !tids.length) {return singular ? [] : tids.map(() => []);