From b05dac674319196144c028929bb49d0a615c8cde Mon Sep 17 00:00:00 2001 From: Pascal Temel Date: Sun, 24 Sep 2017 05:54:13 +0200 Subject: cleanup --- controllers/uploadController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controllers/uploadController.js') diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 08f431f..3e4fdfe 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -187,7 +187,7 @@ uploadsController.processFilesForDisplay = function(req, res, files, existingFil for (let file of files) { let ext = path.extname(file.name).toLowerCase() - if (utils.extensions.includes(ext)) { + if (utils.imageExtensions.includes(ext) || utils.videoExtensions.includes(ext)) { file.thumb = basedomain + '/thumbs/' + file.name.slice(0, -ext.length) + '.png' utils.generateThumbs(file) } @@ -300,7 +300,7 @@ uploadsController.list = function(req, res) { userids.push(file.userid) let ext = path.extname(file.name).toLowerCase() - if (utils.extensions.includes(ext)) { + if (utils.imageExtensions.includes(ext) || utils.videoExtensions.includes(ext)) { file.thumb = basedomain + '/thumbs/' + file.name.slice(0, -ext.length) + '.png' utils.generateThumbs(file) } -- cgit v1.2.3