diff options
| author | Pitu <[email protected]> | 2017-10-03 17:56:44 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-10-03 17:56:44 -0300 |
| commit | d1260563d45bde77d438d3bd5a9dcef525c7e515 (patch) | |
| tree | f15c44d65e5cce1c4e2fba22d63e171fc9aa44d3 /routes | |
| parent | Modified gitignore (diff) | |
| parent | Added support link (diff) | |
| download | host.fuwn.me-d1260563d45bde77d438d3bd5a9dcef525c7e515.tar.xz host.fuwn.me-d1260563d45bde77d438d3bd5a9dcef525c7e515.zip | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/album.js | 2 |
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' /* |