mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +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) {
|
||||
return singular ? null : tids.map(() => []);
|
||||
return singular ? [] : tids.map(() => []);
|
||||
}
|
||||
|
||||
const hasTimestampPrefix = /^\d+-/;
|
||||
|
||||
Reference in New Issue
Block a user