diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 49524a702..ee09b768d 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -172,16 +172,16 @@ def sanitize(sanitized, noimages=False): for i in re.finditer('(?', sanitized) + sanitized = re.sub(f'(?', sanitized) if emoji in session["favorite_emojis"]: session["favorite_emojis"][emoji] += 1 else: session["favorite_emojis"][emoji] = 1 elif path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - sanitized = re.sub(f'(?', sanitized) + sanitized = re.sub(f'(?', sanitized) if emoji in session["favorite_emojis"]: session["favorite_emojis"][emoji] += 1 else: session["favorite_emojis"][emoji] = 1 @@ -252,10 +252,10 @@ def filter_emojis_only(title): if emoji.startswith("!"): emoji = emoji[1:] if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - title = re.sub(f'(?', title) + title = re.sub(f'(?', title) elif path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - title = re.sub(f'(?', title) + title = re.sub(f'(?', title) if len(title) > 1500: abort(400) else: return title \ No newline at end of file diff --git a/files/templates/comments.html b/files/templates/comments.html index 5b86c40bf..934fb7abb 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -749,7 +749,7 @@ {% if v %} - + {% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index f12641de0..5e04e0eb1 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -45,7 +45,7 @@ - + diff --git a/files/templates/formatting.html b/files/templates/formatting.html index ebce280cc..2fae3cbfa 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -65,22 +65,22 @@ You can use Markdown formatting.