Aevann 2023-08-13 17:22:04 +03:00
parent 03f04869c5
commit 990791e59b
1 changed files with 7 additions and 2 deletions

View File

@ -718,8 +718,13 @@ def filter_emojis_only(title, golden=True, count_emojis=False, graceful=False):
if len(title) > POST_TITLE_HTML_LENGTH_LIMIT and not graceful:
abort(400)
else:
return title.strip()
title = title.strip()
soup = BeautifulSoup(title, 'lxml')
text = soup.html.body.text.strip()
if not text: title = f'--- {title} ---'
return title
def is_whitelisted(domain, k):
if domain.endswith('pullpush.io'):