fix some goofy ahh stuff

This commit is contained in:
Ashley 2023-05-01 19:51:06 +00:00
parent c0c1ddb4a9
commit 73efab6556

View file

@ -177,7 +177,7 @@ module.exports = function (app, config, renderTemplate) {
var { tj, shorts, stream, c, boutJson } = cache[ID].result; var { tj, shorts, stream, c, boutJson } = cache[ID].result;
} }
const summary = await wiki.summary(boutJson.Channel.Metadata.Name); const summary = await wiki.summary(boutJson?.Channel?.Metadata.Name);
const wikiSummary = summary.title !== "Not found." ? summary : "none"; const wikiSummary = summary.title !== "Not found." ? summary : "none";
const subscribers = boutJson.Channel.Metadata.Subscribers; const subscribers = boutJson.Channel.Metadata.Subscribers;