Added markdown

This commit is contained in:
CorwinDev committed 2022-08-18 16:19:43 +02:00
1 parent 93f2c8b0a8
commit 4a3bb5ae9b
10 files changed
+150 -49

No files matched your search

+3 -2
View File
@@ -89,7 +89,7 @@ router.get('/:botID', async function (req, res) {
return res.redirect('/');
}
if (bot.verified == false) {
if(!req.user) {
if (!req.user) {
req.backURL = req.originalUrl;
return res.redirect('/auth');
}
@@ -104,7 +104,8 @@ router.get('/:botID', async function (req, res) {
coowner.push(b)
})
var html = converter.makeHtml(bot.long_description);
html = sanitizeHtml(html)
html = sanitizeHtml(html,
{ allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']) })
res.render('bot/index', {
bot: bot,
user: req.user,