aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorPascal Temel <[email protected]>2017-09-24 05:54:13 +0200
committerPascal Temel <[email protected]>2017-09-24 05:54:13 +0200
commitb05dac674319196144c028929bb49d0a615c8cde (patch)
treeb1ac926cc835f6bd90735ae0055a24946bc13932 /routes
parentadd wmv, avi and mov thumbnail support (diff)
downloadhost.fuwn.me-b05dac674319196144c028929bb49d0a615c8cde.tar.xz
host.fuwn.me-b05dac674319196144c028929bb49d0a615c8cde.zip
cleanup
Diffstat (limited to 'routes')
-rw-r--r--routes/album.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/album.js b/routes/album.js
index 2c084b4..20ccc26 100644
--- a/routes/album.js
+++ b/routes/album.js
@@ -28,7 +28,7 @@ routes.get('/a/:identifier', (req, res, next) => {
file.file = basedomain + '/' + file.name
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'
/*