forked from indymedia/epicyon
Extra emoji checks
parent
caf3c31472
commit
691b14a3e7
|
@ -62,8 +62,9 @@ def replaceEmojiFromTags(content: str,tag: [],messageType: str) -> str:
|
|||
continue
|
||||
iconName=tagItem['icon']['url'].split('/')[-1]
|
||||
if iconName:
|
||||
if iconName.startswith('1'):
|
||||
if '.' in iconName:
|
||||
if len(iconName)>1:
|
||||
if iconName[0].isdigit():
|
||||
if '.' in iconName and '-' not in iconName:
|
||||
iconName=iconName.split('.')[0]
|
||||
content= \
|
||||
content.replace(tagItem['name'], \
|
||||
|
|
Loading…
Reference in New Issue