mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 00:56:13 +01:00
fix: incorrect return for Thumbs.get() if thumbs were disabled
This commit is contained in:
@@ -28,7 +28,7 @@ Thumbs.get = async function (tids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!meta.config.allowTopicsThumbnail) {
|
if (!meta.config.allowTopicsThumbnail) {
|
||||||
return singular ? null : tids.map(() => []);
|
return singular ? [] : tids.map(() => []);
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasTimestampPrefix = /^\d+-/;
|
const hasTimestampPrefix = /^\d+-/;
|
||||||
|
|||||||
Reference in New Issue
Block a user