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'') + title = title.replace(f':!{emoji}:', f'') elif path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): title = title.replace(f':{emoji}:', f'') 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.