fddf
parent
8279e7932e
commit
7d80d3dfec
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue