This commit is contained in:
Aevann1 2021-09-23 00:27:09 +02:00
parent bfb1830b98
commit 30f42771f8
5 changed files with 26 additions and 40 deletions

View file

@ -976,7 +976,6 @@ def ban_post(post_id, v):
post.removed_by = v.id
ban_reason=request.values.get("reason", "")
ban_reason = ban_reason.replace("\n", "\n\n").replace("\n\n\n\n\n\n", "\n\n").replace("\n\n\n\n", "\n\n").replace("\n\n\n", "\n\n")
ban_reason = CustomRenderer().render(mistletoe.Document(ban_reason))
ban_reason = sanitize(ban_reason)