forked from MarseyWorld/MarseyWorld
master
parent
19035290bc
commit
92b6d18fc0
|
@ -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>')
|
||||
|
||||
|
|
Loading…
Reference in New Issue