fix some stuff :3

This commit is contained in:
Ashley 2023-09-13 17:28:54 +00:00
parent aed76b3a1a
commit 575db38a3a

View file

@ -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, " <br> ");
const dnoreplace = about.Description.toString();
const about = boutJson?.Channel?.Contents?.ItemSection.About;
const description = about?.Description.toString().replace(/\n/g, " <br> ");
const dnoreplace = about?.Description.toString();
renderTemplate(res, req, "channel.ejs", {
ID,