mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +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) {
|
||||
return singular ? [] : tids.map(() => []);
|
||||
|
||||
Reference in New Issue
Block a user