mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 03:37:53 +01:00
fix some stuff :3
This commit is contained in:
parent
aed76b3a1a
commit
575db38a3a
1 changed files with 3 additions and 3 deletions
|
@ -198,9 +198,9 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const subscribers = boutJson.Channel?.Metadata.Subscribers;
|
const subscribers = boutJson.Channel?.Metadata.Subscribers;
|
||||||
const about = boutJson.Channel.Contents.ItemSection.About;
|
const about = boutJson?.Channel?.Contents?.ItemSection.About;
|
||||||
const description = about.Description.toString().replace(/\n/g, " <br> ");
|
const description = about?.Description.toString().replace(/\n/g, " <br> ");
|
||||||
const dnoreplace = about.Description.toString();
|
const dnoreplace = about?.Description.toString();
|
||||||
|
|
||||||
renderTemplate(res, req, "channel.ejs", {
|
renderTemplate(res, req, "channel.ejs", {
|
||||||
ID,
|
ID,
|
||||||
|
|
Loading…
Reference in a new issue