master
Aevann1 2021-09-30 23:24:52 +02:00
parent 57df1ac8b5
commit f878557b77
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ def sanitize(sanitized, noimages=False):
emoji = i.group(1)
print(emoji)
if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'):
sanitized = sanitized.replace(f':{emoji}:', f'<p style="margin-bottom:0;"><img loading="lazy" data-bs-toggle="tooltip" alt=":{emoji}:" title=":{emoji}:" delay="0" height=60 src="https://{site}/assets/images/emojis/{emoji}.webp"></p>')
sanitized = sanitized.replace(f':{emoji}:', f'<img loading="lazy" data-bs-toggle="tooltip" alt=":{emoji}:" title=":{emoji}:" delay="0" height=60 src="https://{site}/assets/images/emojis/{emoji}.webp">')
try:
if emoji in session["favorite_emojis"]: session["favorite_emojis"][emoji] += 1