mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16:21 +00:00
Updated uploadController.js
Removed unnecessary slash from thumb URLs.
This commit is contained in:
parent
0e64942a6f
commit
62b00210dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user