From 351e0ead9eca7e3ca465f09519155eb7d43c3279 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 26 Mar 2023 00:48:04 +0200 Subject: [PATCH] remove unnecessary garbage --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 1aa28d278..b80bd9608 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -641,7 +641,7 @@ def complies_with_chud(obj): tags = soup.html.body.find_all(lambda tag: tag.name not in {'blockquote','codeblock','pre'} and tag.string, recursive=False) for tag in tags: tag.string.replace_with(torture_ap(tag.string, obj.author.username)) - obj.body_html = str(soup) + obj.body_html = str(soup).replace('','').replace('','') #torture title_html and check for agendaposter_phrase in plain title and leave if it's there if isinstance(obj, Submission):