From a9e0acbd0ac489d9e5fb3f82fb35cc2e68ac88cb Mon Sep 17 00:00:00 2001 From: ashley Date: Sun, 26 May 2024 20:37:47 +0000 Subject: [PATCH] oops --- .../init/pages-channel-and-download.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index d3d60f4c..e8c2e987 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -343,14 +343,7 @@ module.exports = function (app, config, renderTemplate) { } } - if (continuation) { - const currentAuthorId = cinv.authorId; - const firstVideoAuthorId = tj.videos[0].authorId; - - if (currentAuthorId !== firstVideoAuthorId) { - res.status(400).send("continuation does not match the channel :c - how tf did this happen :sob:"); - } - } + cache[ID] = { result: { @@ -379,7 +372,15 @@ module.exports = function (app, config, renderTemplate) { - + if (continuation) { + const currentAuthorId = ID; + const firstVideoAuthorId = tj.videos[0].authorId; + + if (currentAuthorId !== firstVideoAuthorId) { + res.status(400).send("continuation does not match the channel :c - how tf did this happen :sob:"); + } + } + renderTemplate(res, req, "channel.ejs", { ID, tab,