Updated routes/albums.js

Thumbnails' alt will now be their file name instead of full thumb URL.
This commit is contained in:
Bobby Wibowo 2018-04-27 02:54:00 +07:00
parent 006907ff06
commit 0bce5e6da3
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -49,7 +49,7 @@ routes.get('/a/:identifier', async (req, res, next) => {
thumb = file.thumb
}
file.thumb = `<img alt="${file.thumb}" src="${file.thumb}"/>`
file.thumb = `<img alt="${file.name}" src="${file.thumb}"/>`
} else {
file.thumb = `<h1 class="title">${extname || 'N/A'}</h1>`
}