From 575db38a3a4e094fe3465d208e8bdcda9e9ab426 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 13 Sep 2023 17:28:54 +0000 Subject: [PATCH] fix some stuff :3 --- src/libpoketube/init/pages-channel-and-download.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index df9d1a8f..a9ea3ba5 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -198,9 +198,9 @@ module.exports = function (app, config, renderTemplate) { } const subscribers = boutJson.Channel?.Metadata.Subscribers; - const about = boutJson.Channel.Contents.ItemSection.About; - const description = about.Description.toString().replace(/\n/g, "
"); - const dnoreplace = about.Description.toString(); + const about = boutJson?.Channel?.Contents?.ItemSection.About; + const description = about?.Description.toString().replace(/\n/g, "
"); + const dnoreplace = about?.Description.toString(); renderTemplate(res, req, "channel.ejs", { ID,