ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix 500 on unknown thread
Chocobozzz9b337d8c0fce
diff --git a/server/controllers/api/videos/comment.ts b/server/controllers/api/videos/comment.tsindex ccd76c0933..020d0b1047 100644--- a/server/controllers/api/videos/comment.ts+++ b/server/controllers/api/videos/comment.ts@@ -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))}