remove unnecessary garbage

pull/142/head
Aevann 2023-03-26 00:48:04 +02:00
parent 21e0fa0bc6
commit 351e0ead9e
1 changed files with 1 additions and 1 deletions

View File

@ -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('<html><body>','').replace('</body></html>','')
#torture title_html and check for agendaposter_phrase in plain title and leave if it's there
if isinstance(obj, Submission):