Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/130876c43ebf3c328395b1eabd1ed4d57a66be8c
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
3 additions and
3 deletions
@ -18,7 +18,7 @@ router.use((req, res, next) => {
// If the ID is invalid, return 404. Otherwise, continue normally
data . has ( req . ass . resourceId )
. then ( ( has ) => has ? next ( ) : res . sendStatus ( CODE _NOT _FOUND ) )
. then ( ( has ) => has ? next ( ) : res . sendStatus ( CODE _NOT _FOUND ) ) // skipcq: JS-0229
. catch ( next ) ;
} ) ;
@ -98,7 +98,7 @@ router.get('/oembed', (req, res, next) =>
// Delete file
router . get ( '/delete/:deleteId' , ( req , res , next ) => {
let oldName , oldType ;
let oldName , oldType ; // skipcq: JS-0119
data . get ( req . ass . resourceId )
. then ( ( fileData ) => {
// Extract info for logs
@ -115,7 +115,7 @@ router.get('/delete/:deleteId', (req, res, next) => {
return Promise . all ( [ s3enabled ? deleteS3 ( fileData ) : fs . rmSync ( path ( fileData . path ) ) , fs . rmSync ( path ( diskFilePath , 'thumbnails/' , fileData . thumbnail ) ) ] ) ;
} )
. then ( ( ) => data . del ( req . ass . resourceId ) )
. then ( ( ) => ( log ( ` Deleted: ${ oldName } ( ${ oldType } ) ` ) , res . type ( 'text' ) . send ( 'File has been deleted!' ) ) )
. then ( ( ) => ( log ( ` Deleted: ${ oldName } ( ${ oldType } ) ` ) , res . type ( 'text' ) . send ( 'File has been deleted!' ) ) ) // skipcq: JS-0090
. catch ( next ) ;
} ) ;