Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/bd273186e675154485aed4baba170949108a2f0c You should set ROOT_URL correctly, otherwise the web may not work correctly.

thumbnail uses file random ID now to avoid conflicts

pull/29/head
tycrek 4 years ago
parent d28d3f2254
commit bd273186e6
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -82,5 +82,5 @@ function getImageThumbnail(file) {
module.exports = (file) =>
new Promise((resolve, reject) =>
(file.is.video ? getVideoThumbnail : file.is.image ? getImageThumbnail : () => Promise.resolve())(file)
.then(() => resolve((file.is.video || file.is.image) ? getNewName(file.originalname) : file.is.audio ? 'views/ass-audio-icon.png' : 'views/ass-file-icon.png'))
.then(() => resolve((file.is.video || file.is.image) ? getNewName(file.randomId) : file.is.audio ? 'views/ass-audio-icon.png' : 'views/ass-file-icon.png'))
.catch(reject));

Loading…
Cancel
Save