From 6214f1a0a143d7738418710f1817cec7b1af9e79 Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 22 May 2024 20:07:45 +0000 Subject: [PATCH] test commit ignore pls --- src/libpoketube/init/pages-channel-and-download.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index 5581cc77..cdc6e59b 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -370,9 +370,12 @@ module.exports = function (app, config, renderTemplate) { const dnoreplace = about?.Description.toString(); - if(!Array.isArray(tj?.videos) && Array.isArray(shorts?.videos) ) { + if(!Array.isArray(tj?.videos)) { + if(Array.isArray(shorts?.videos)) { res.redirect(`/channel?id=${req.query.id}&tab=shorts`) } + } + renderTemplate(res, req, "channel.ejs", { ID,