mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 08:31:22 +01:00
@@ -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) {
|
if (!meta.config.allowTopicsThumbnail || !tids.length) {
|
||||||
return singular ? [] : tids.map(() => []);
|
return singular ? [] : tids.map(() => []);
|
||||||
|
|||||||
Reference in New Issue
Block a user