diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 8ec76f0512..c99c20c572 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -217,16 +217,18 @@ def sanitize(sanitized, noimages=False): if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '').replace(end, '') - for i in re.finditer('
:([^ ]{1,30}?):
', sanitized): - emoji = i.group(1).lower() - if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'): - sanitized = sanitized.replace(f':{emoji}:
', f'