fix emoji tags
This commit is contained in:
parent
eadf6a7708
commit
75cef8f916
3 changed files with 6 additions and 6 deletions
|
@ -439,7 +439,7 @@ def filter_title(title):
|
|||
|
||||
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" data-toggle="tooltip" title="{i.group(1)}" delay="0" height=20 src="https://{site}/assets/images/emojis/{i.group(1)}.webp"<span>')
|
||||
title = title.replace(f':{i.group(1)}:', f'<img loading="lazy" data-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