From 243368c106967555977282f5552bb194a88cf0ad Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 30 Jun 2023 23:32:36 +0300 Subject: [PATCH] add padding --- files/helpers/sanitize.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index f19a5e895..a910eba01 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -633,8 +633,10 @@ def filter_emojis_only(title, golden=True, count_emojis=False, graceful=False, s if strip: title = title.strip() - if len(title) > POST_TITLE_HTML_LENGTH_LIMIT and not graceful: abort(400) - else: return title + if len(title) > POST_TITLE_HTML_LENGTH_LIMIT and not graceful: + abort(400) + else: + return title def normalize_url(url): url = reddit_domain_regex.sub(r'\1https://old.reddit.com/\3/', url)