fix last commit
parent
f5e507f795
commit
2b7d122fd8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue