From 21156673e3a25b209b606625788be0dd15f306ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 3 Feb 2025 13:13:49 -0500 Subject: [PATCH] fix: isDraft logic, closes #13119 topic.exists returns an array --- src/topics/thumbs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/thumbs.js b/src/topics/thumbs.js index 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(() => []);