fix last commit

pull/142/head
Aevann 2023-03-23 17:41:57 +02:00
parent f5e507f795
commit 2b7d122fd8
1 changed files with 4 additions and 5 deletions

View File

@ -630,6 +630,10 @@ def complies_with_chud(obj):
soup=BeautifulSoup(obj.body_html.lower(), 'lxml')
if isinstance(obj, Submission):
obj.title_html = torture_ap(obj.title_html, obj.author.username)
obj.body_html = torture_ap(obj.body_html, obj.author.username)
tags = soup.html.body.find_all('p', recursive=False)
for tag in tags:
@ -637,9 +641,4 @@ def complies_with_chud(obj):
if obj.author.agendaposter_phrase in text:
return True
if isinstance(obj, Submission):
obj.title_html = torture_ap(title_html, obj.author.username)
obj.body_html = torture_ap(body_html, obj.author.username)
return False