mirror of https://gitlab.com/bashrc2/epicyon
Check for invalid characters in emoji reactions
parent
862403054a
commit
ec5245cd1c
|
@ -30,6 +30,7 @@ from utils import loadJson
|
|||
from utils import saveJson
|
||||
from utils import removePostFromCache
|
||||
from utils import getCachedPostFilename
|
||||
from utils import containsInvalidChars
|
||||
from posts import sendSignedJson
|
||||
from session import postJson
|
||||
from webfinger import webfingerHandle
|
||||
|
@ -54,6 +55,8 @@ def validEmojiContent(emojiContent: str) -> bool:
|
|||
return False
|
||||
if len(emojiRegex.findall(emojiContent)) == 0:
|
||||
return False
|
||||
if containsInvalidChars(emojiContent):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue