master
Aevann1 2021-09-30 23:10:52 +02:00
parent 19035290bc
commit 92b6d18fc0
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ def sanitize(sanitized, noimages=False):
print(emojis)
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', emojis):
emoji = i.group(1)
print(emoji)
if path.isfile(f'./files/assets/images/emojis/{emoji}.webp'):
sanitized = sanitized.replace(f'<p>:{emoji}:</p>', 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>')