mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
fix: album public page failing when no description
This commit is contained in:
parent
11030ff2f5
commit
a0adefc740
@ -76,7 +76,9 @@ routes.get('/a/:identifier', async (req, res, next) => {
|
|||||||
: `api/album/zip/${album.identifier}?v=${album.editedAt}`
|
: `api/album/zip/${album.identifier}?v=${album.editedAt}`
|
||||||
|
|
||||||
album.url = `a/${album.identifier}`
|
album.url = `a/${album.identifier}`
|
||||||
album.description = utils.md.instance.render(album.description)
|
album.description = album.description
|
||||||
|
? utils.md.instance.render(album.description)
|
||||||
|
: null
|
||||||
|
|
||||||
return res.render('album', {
|
return res.render('album', {
|
||||||
config,
|
config,
|
||||||
|
Loading…
Reference in New Issue
Block a user