From a0cebd409cd9e560949fc6fb4b93cf89951d6301 Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 4 May 2024 05:28:55 +0000 Subject: [PATCH] return 404 if errors --- src/libpoketube/init/pages-video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-video.js b/src/libpoketube/init/pages-video.js index 6b2e288d..3647e0e5 100644 --- a/src/libpoketube/init/pages-video.js +++ b/src/libpoketube/init/pages-video.js @@ -270,7 +270,7 @@ module.exports = function (app, config, renderTemplate) { ); } - if (inv_vid.error) { + if (inv_vid?.error) { renderTemplate(res, req, "404.ejs", { v, });