dfgdg
This commit is contained in:
parent
dd96cda259
commit
0a28de5c57
1 changed files with 4 additions and 0 deletions
|
@ -381,6 +381,10 @@ def filter_title(title):
|
|||
if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.webp'):
|
||||
title = title.replace(f':{i.group(1)}:', f'<img loading="lazy" data-bs-toggle="tooltip" title="{i.group(1)}" delay="0" height=20 src="https://{site}/assets/images/emojis/{i.group(1)}.webp">')
|
||||
|
||||
for i in re.finditer('!(.{1,30}?)!', title):
|
||||
if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.webp'):
|
||||
title = title.replace(f'!{i.group(1)}!', f'<img loading="lazy" style="transform: scaleX(-1)" data-bs-toggle="tooltip" title="{i.group(1)}" delay="0" height=20 src="https://{site}/assets/images/emojis/{i.group(1)}.webp">')
|
||||
|
||||
return title
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue