From e30fa3bbea9132caa4477bb51eb46f5c42e9be98 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 4 Dec 2021 00:52:00 +0200 Subject: [PATCH] fsdfsd --- files/helpers/sanitize.py | 6 +-- files/templates/admins.html | 2 +- files/templates/comment_failed.html | 6 +-- files/templates/comments.html | 53 +++++++++++----------- files/templates/formatting.html | 4 +- files/templates/header.html | 20 ++++----- files/templates/home.html | 2 +- files/templates/settings_profile.html | 24 +++++----- files/templates/shop.html | 2 +- files/templates/submission.html | 46 +++++++++---------- files/templates/submission_listing.html | 36 +++++++-------- files/templates/submit.html | 14 +++--- files/templates/userpage.html | 60 ++++++++++++------------- 13 files changed, 138 insertions(+), 137 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index c7a40875f..5a6efa8a5 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -172,17 +172,17 @@ def sanitize(sanitized, noimages=False): for i in re.finditer('(?', new) + new = re.sub(f'(?', new) if remoji in session["favorite_emojis"]: session["favorite_emojis"][remoji] += 1 else: session["favorite_emojis"][remoji] = 1 diff --git a/files/templates/admins.html b/files/templates/admins.html index 421309fa9..0f76a6630 100644 --- a/files/templates/admins.html +++ b/files/templates/admins.html @@ -15,7 +15,7 @@ {% for user in admins %} - {{user.username}}{% if user.admin_level == 1 and v and v.admin_level > 1 %}{% endif %} + {{user.username}}{% if user.admin_level == 1 and v and v.admin_level > 1 %}{% endif %} {{user.truecoins}} {% endfor %} diff --git a/files/templates/comment_failed.html b/files/templates/comment_failed.html index aca4ece1e..88cc22826 100644 --- a/files/templates/comment_failed.html +++ b/files/templates/comment_failed.html @@ -29,9 +29,9 @@
- - - + + +
diff --git a/files/templates/comments.html b/files/templates/comments.html index 6e7c529d8..d16f0eb85 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -122,9 +122,9 @@
{% for b in c.author.badges %} {% if b.url %} - + {% else %} - + {% endif %} {% endfor %}
@@ -264,24 +264,24 @@ {% if c.awards %} {% for a in c.awards %} - + {% endfor %} {% endif %} {% if c.bannedfor and c.author.banned_by %} - + {% endif %} {% if c.active_flags %}{{c.active_flags}} Reports{% endif %} {% if c.over_18 %}+18{% endif %} - {% if v and v.admin_level > 1 and c.author.shadowbanned %}{% endif %} - {% if c.is_pinned %}{% endif %} - {% if c.distinguish_level %}{% endif %} - {% if c.is_op %}{% endif %} - {% if c.is_bot %}{% endif %} - {% if c.is_blocking %}{% endif %} - {% if c.is_blocked %}{% endif %} + {% if v and v.admin_level > 1 and c.author.shadowbanned %}{% endif %} + {% if c.is_pinned %}{% endif %} + {% if c.distinguish_level %}{% endif %} + {% if c.is_op %}{% endif %} + {% if c.is_bot %}{% endif %} + {% if c.is_blocking %}{% endif %} + {% if c.is_blocked %}{% endif %} - {% if c.author.verified %} + {% if c.author.verified %} {% endif %} {{c.author.username}} @@ -339,7 +339,7 @@
Cancel @@ -360,16 +360,16 @@
- +   - +   - +   - +   - +