master
Aevann1 2021-12-03 23:06:47 +02:00
parent b84c072b39
commit 423639d29b
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ def sanitize(sanitized, noimages=False):
if path.isfile(f'./files/assets/images/emojis/{remoji}.webp'):
new = re.sub(f'(?<!"):{emoji}:', f'<img loading="lazy" data-bs-toggle="tooltip" alt=":{emoji}:" title=":{emoji}:" delay="0" class="{classes}" src="http://{site}/assets/images/emojis/{remoji}.webp" >', new)
if emoji in session["favorite_emojis"]: session["favorite_emojis"][emoji] += 1
else: session["favorite_emojis"][emoji] = 1
if remoji in session["favorite_emojis"]: session["favorite_emojis"][remoji] += 1
else: session["favorite_emojis"][remoji] = 1
sanitized = sanitized.replace(old, new)