Updated uploadController.js

Removed unnecessary slash from thumb URLs.
This commit is contained in:
Bobby Wibowo 2019-07-26 23:54:45 +07:00
parent 0e64942a6f
commit 62b00210dc
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -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