add padding
parent
6d23974d58
commit
243368c106
|
@ -633,8 +633,10 @@ def filter_emojis_only(title, golden=True, count_emojis=False, graceful=False, s
|
||||||
if strip:
|
if strip:
|
||||||
title = title.strip()
|
title = title.strip()
|
||||||
|
|
||||||
if len(title) > POST_TITLE_HTML_LENGTH_LIMIT and not graceful: abort(400)
|
if len(title) > POST_TITLE_HTML_LENGTH_LIMIT and not graceful:
|
||||||
else: return title
|
abort(400)
|
||||||
|
else:
|
||||||
|
return title
|
||||||
|
|
||||||
def normalize_url(url):
|
def normalize_url(url):
|
||||||
url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\3/', url)
|
url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\3/', url)
|
||||||
|
|
Loading…
Reference in New Issue