diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 5392337561..140e3e257f 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -171,14 +171,17 @@ def sanitize(sanitized, noimages=False): else: new = old.lower() 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 diff --git a/files/templates/comments.html b/files/templates/comments.html index c0c652f7b9..6736e8d28c 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -749,7 +749,7 @@ {% if v %} - + {% endif %} diff --git a/files/templates/submission.html b/files/templates/submission.html index 2935392e13..2165c1d18a 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -885,7 +885,7 @@ {% if not p.comment_count %} {% if v %} - + {% include "award_modal.html" %} {% include "emoji_modal.html" %} {% include "gif_modal.html" %} diff --git a/files/templates/submit.html b/files/templates/submit.html index 2599ece766..1ad00c608c 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -177,7 +177,7 @@ - + {% include "emoji_modal.html" %}