diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py
index fe32b37d10..fe95ee2b86 100644
--- a/files/helpers/sanitize.py
+++ b/files/helpers/sanitize.py
@@ -220,7 +220,7 @@ def sanitize(sanitized, noimages=False):
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'![:{emoji}: :{emoji}:](https://{site}/assets/images/emojis/{emoji}.webp)
')
+ sanitized = sanitized.replace(f':{emoji}:
', f'![{emoji}](https://{site}/assets/images/emojis/{emoji}.webp)
')
try:
if emoji in session["favorite_emojis"]: session["favorite_emojis"][emoji] += 1
@@ -231,7 +231,7 @@ def sanitize(sanitized, noimages=False):
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'
')
+ sanitized = sanitized.replace(f':{emoji}:', f'
')
try:
if emoji in session["favorite_emojis"]: session["favorite_emojis"][emoji] += 1