From 62b00210dc2b9f4b7f88bacb6ee0853e56bedf57 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Fri, 26 Jul 2019 23:54:45 +0700 Subject: [PATCH] Updated uploadController.js Removed unnecessary slash from thumb URLs. --- controllers/uploadController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 80e53f2..1549a3b 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -791,7 +791,7 @@ uploadsController.list = async (req, res) => { for (const file of files) { file.extname = utils.extname(file.name) if (utils.mayGenerateThumb(file.extname)) - file.thumb = `/thumbs/${file.name.slice(0, -file.extname.length)}.png` + file.thumb = `thumbs/${file.name.slice(0, -file.extname.length)}.png` } // If we are not listing all uploads, query album names