main
Bob Mottram 2020-02-21 17:09:09 +00:00
parent 2b6aa3f44b
commit caf3c31472
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ def replaceEmojiFromTags(content: str,tag: [],messageType: str) -> str:
if iconName.startswith('1'): if iconName.startswith('1'):
if '.' in iconName: if '.' in iconName:
iconName=iconName.split('.')[0] iconName=iconName.split('.')[0]
content=content.replace(tagItem['name'],chr(int("0x"+iconName,16))) content= \
content.replace(tagItem['name'], \
chr(int("0x"+iconName,16)))
htmlClass='emoji' htmlClass='emoji'
if messageType=='post header': if messageType=='post header':
htmlClass='emojiheader' htmlClass='emojiheader'