From d4ee04a4cc2c19802f236823291cd5aa606e2586 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 6 Dec 2021 22:02:51 +0200 Subject: [PATCH] fsd --- files/helpers/sanitize.py | 13 ++++++++----- files/templates/comments.html | 2 +- files/templates/submission.html | 2 +- files/templates/submit.html | 2 +- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 539233756..140e3e257 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 c0c652f7b..6736e8d28 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 2935392e1..2165c1d18 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 2599ece76..1ad00c608 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -177,7 +177,7 @@ - + {% include "emoji_modal.html" %}