mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-02-21 12:49:07 +00:00
Updated routes/albums.js
Thumbnails' alt will now be their file name instead of full thumb URL.
This commit is contained in:
parent
006907ff06
commit
0bce5e6da3
@ -49,7 +49,7 @@ routes.get('/a/:identifier', async (req, res, next) => {
|
|||||||
thumb = file.thumb
|
thumb = file.thumb
|
||||||
}
|
}
|
||||||
|
|
||||||
file.thumb = `<img alt="${file.thumb}" src="${file.thumb}"/>`
|
file.thumb = `<img alt="${file.name}" src="${file.thumb}"/>`
|
||||||
} else {
|
} else {
|
||||||
file.thumb = `<h1 class="title">${extname || 'N/A'}</h1>`
|
file.thumb = `<h1 class="title">${extname || 'N/A'}</h1>`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user