diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index ed7674d5e..fd0bc8473 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -178,9 +178,9 @@ def sanitize(text, linkgen=False, flair=False): end = '</s>' 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): - if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.gif'): - sanitized = sanitized.replace(f':{i.group(1)}:', f':(.{1,30}?):
', sanitized): + # if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.gif'): + # sanitized = sanitized.replace(f':{i.group(1)}:', f'