Skip to content

Node.js based forum software built for the modern web

fix: incorrect return for Thumbs.get() if thumbs were disabled

Julian Lam7b090c588b34
diff --git a/src/topics/thumbs.js b/src/topics/thumbs.js
index 169bc8d60e..0eab34faa4 100644
--- a/src/topics/thumbs.js
+++ b/src/topics/thumbs.js
@@ -28,7 +28,7 @@ Thumbs.get = async function (tids) {
}
if (!meta.config.allowTopicsThumbnail) {
- return singular ? null : tids.map(() => []);
+ return singular ? [] : tids.map(() => []);
}
const hasTimestampPrefix = /^\d+-/;