remotes/1693045480750635534/spooky-22
Aevann1 2021-10-12 07:26:58 +02:00
parent 9e4604fb35
commit a1e4da3964
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ from files.routes.front import comment_idlist
from pusher_push_notifications import PushNotifications
from flask import *
from files.__main__ import app, limiter
from mistune import Markdown
markdown = Markdown()
site = environ.get("DOMAIN").strip()
@ -158,7 +160,7 @@ def api_comment(v):
options.append(i.group(1))
body_md = body_md.replace(i.group(0), "")
body_md = CustomRenderer().render(mistletoe.Document(body_md))
body_md = markdown(body_md)
body_html = sanitize(body_md)
bans = filter_comment_html(body_html)