From 5a2bb1a4973f0911f04aa5bb5c2b747122b07d16 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 02:28:22 +0200 Subject: [PATCH] gfgd --- files/helpers/sanitize.py | 4 ++-- files/routes/posts.py | 2 +- files/templates/formatting.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 6576aa6be..f3cbe45ae 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -196,7 +196,7 @@ def sanitize(sanitized, noimages=False): if emoji.startswith("!"): emoji = emoji[1:] if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - new = re.sub(f'\w*(?', new) + new = re.sub(f'\w*(?', new) elif path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): new = re.sub(f'\w*(?', new) @@ -212,7 +212,7 @@ def sanitize(sanitized, noimages=False): if emoji.startswith("!"): emoji = emoji[1:] if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - sanitized = re.sub(f'\w*(?', sanitized) + sanitized = re.sub(f'\w*(?', sanitized) elif path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): sanitized = re.sub(f'\w*(?', sanitized) diff --git a/files/routes/posts.py b/files/routes/posts.py index 63fa6d3c4..6544c87bf 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -384,7 +384,7 @@ def filter_title(title): if emoji.startswith("!"): emoji = emoji[1:] if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - title = title.replace(f':!{emoji}:', f':!{emoji}:') + title = title.replace(f':!{emoji}:', f':!{emoji}:') elif path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): title = title.replace(f':{emoji}:', f':{emoji}:') diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 4a49afe01..385085990 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -60,7 +60,7 @@ On {{'SITE_NAME' | app_config}}, you can use Markdown formatting. Mirrored Emojis :!marseylove: - :!marseylove: + :!marseylove: Poll Options