fix: isDraft logic, closes #13119

topic.exists returns an array
This commit is contained in:
Barış Soner Uşaklı
2025-02-03 13:13:49 -05:00
parent 36063d1f33
commit 21156673e3

View File

@@ -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(() => []);