mirror of https://github.com/Chocobozzz/PeerTube
Fix 500 on unknown thread
parent
353f8bc0c7
commit
9b337d8c0f
|
@ -160,6 +160,10 @@ async function listVideoThreadComments (req: express.Request, res: express.Respo
|
|||
}
|
||||
}
|
||||
|
||||
if (resultList.data.length === 0) {
|
||||
return res.sendStatus(404)
|
||||
}
|
||||
|
||||
return res.json(buildFormattedCommentTree(resultList))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue