Revert "effortpost backwards compatability with old threads like https://rdrama.net/post/57695/the-story-of-michael-j-burry"

This reverts commit bdfe1f135e.
master
Aevann 2024-08-07 03:47:47 +03:00
parent 4868b9dccb
commit 0c427dca80
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ class Post(Base):
return False
soup = BeautifulSoup(self.body_html, 'lxml')
tags = soup.html.body.find_all(lambda tag: tag.name in {'p','ul','table','d'} and tag.text, recursive=False)
tags = soup.html.body.find_all(lambda tag: tag.name in {'p','ul','table'} and tag.text, recursive=False)
post_char_count = 0
for tag in tags:
post_char_count += len(tag.text)