From e4662247b7a9c275c49fa4eb34bc0bac54551a4c Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 30 Jun 2023 22:54:36 +0300 Subject: [PATCH] revert commit that caused pat emojis not to get mirrored This reverts commit 3a3615d2927ad8e4dab7b8ec9480b5daa535c6bb. --- files/helpers/sanitize.py | 4 ++-- files/templates/formatting.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 10a67cd71..52c75be92 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -237,10 +237,10 @@ def render_emoji(html, regexp, golden, emojis_used, b=False): if emoji.endswith('pat') and emoji != 'marseyunpettablepat': if path.isfile(f"files/assets/images/emojis/{emoji.replace('pat','')}.webp"): - emoji_html = f'{emoji_partial_pat.format(old, f"/e/{emoji[:-3]}.webp", attrs)}' + emoji_html = f'{emoji_partial_pat.format(old, f"/e/{emoji[:-3]}.webp", attrs)}' elif emoji.startswith('@'): if u := get_user(emoji[1:-3], graceful=True): - emoji_html = f'{emoji_partial_pat.format(old, f"/pp/{u.id}", attrs)}' + emoji_html = f'{emoji_partial_pat.format(old, f"/pp/{u.id}", attrs)}' elif path.isfile(f'files/assets/images/emojis/{emoji}.webp'): emoji_html = emoji_partial.format(old, f'/e/{emoji}.webp', attrs) diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 8f5e1d373..18d3f954f 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -100,12 +100,12 @@ Text 2 Pat Emojis :marseylovepat: - :marseylovepat: + :marseylovepat: Pat User :@snappypat: - :@snappypat: + :@snappypat: Random Marsey