remotes/1693045480750635534/spooky-22
Aevann1 2021-07-29 02:03:25 +02:00
parent 8279e7932e
commit 7d80d3dfec
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from drama.helpers.sanitize import *
from drama.helpers.markdown import *
from drama.helpers.security import *
from drama.helpers.get import *
from drama.helpers.imageupload import *
from drama.helpers.images import *
from drama.classes import *
from drama.classes.domains import reasons as REASONS
from flask import *
@ -729,7 +729,7 @@ def ban_post(post_id, v):
post.is_pinned = False
ban_reason=request.form.get("reason", "")
ban_reason = ban_reason.replace("\n", "\n\n")
ban_reason = ban_reason.replace("\n", "\n\n").replace("\n\n\n\n\n\n", "\n\n").replace("\n\n\n\n", "\n\n")
with CustomRenderer() as renderer:
ban_reason = renderer.render(mistletoe.Document(ban_reason))
ban_reason = sanitize(ban_reason, linkgen=True)