From aa78c6d8a5f1590a5d7c56d15a48033b86f9b717 Mon Sep 17 00:00:00 2001
From: Aevann1
Date: Fri, 13 Aug 2021 02:58:41 +0200
Subject: [PATCH] sneed
---
files/helpers/sanitize.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py
index 84f9275d95..f594c59a7f 100644
--- a/files/helpers/sanitize.py
+++ b/files/helpers/sanitize.py
@@ -180,9 +180,9 @@ def sanitize(text, linkgen=False, flair=False):
if flair: emojisize = 20
else: emojisize = 30
- 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'
')
+ # 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'
')
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'
')