From fdb6dda91e0968aac484a81b2fe88edeb670f5dc Mon Sep 17 00:00:00 2001 From: orenom Date: Thu, 20 Jan 2022 19:16:22 +0100 Subject: [PATCH] fix invalid applyUserMods() theme parameter (fixes #39) --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index ef22d77..d1f9731 100644 --- a/src/utils.js +++ b/src/utils.js @@ -373,7 +373,7 @@ module.exports = function(redis) { const downParams = new URLSearchParams(req.query).toString() const process_html = await processHtml(result, url, downParams, lang, req.cookies) if(process_html.success === true) { - return res.send(applyUserMods(process_html.html.toString(), req.cookies, lang)) + return res.send(applyUserMods(process_html.html.toString(), req.cookies.theme, lang)) } return res.status(500).send(process_html.reason) }