From 7b090c588b34de41fb30a0ffc973fa5489273339 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 27 Jan 2021 14:33:40 -0500 Subject: [PATCH] fix: incorrect return for Thumbs.get() if thumbs were disabled --- src/topics/thumbs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+-/;