mirror of https://gitlab.com/bashrc2/epicyon
Check announced posts for invalid ciphertext
parent
b6fda529d1
commit
44308df999
6
posts.py
6
posts.py
|
@ -32,6 +32,7 @@ from webfinger import webfingerHandle
|
||||||
from httpsig import createSignedHeader
|
from httpsig import createSignedHeader
|
||||||
from siteactive import siteIsActive
|
from siteactive import siteIsActive
|
||||||
from languages import understoodPostLanguage
|
from languages import understoodPostLanguage
|
||||||
|
from utils import invalidCiphertext
|
||||||
from utils import hasObjectStringType
|
from utils import hasObjectStringType
|
||||||
from utils import removeIdEnding
|
from utils import removeIdEnding
|
||||||
from utils import replaceUsersWithAt
|
from utils import replaceUsersWithAt
|
||||||
|
@ -4602,6 +4603,11 @@ def downloadAnnounce(session, baseDir: str, httpPrefix: str,
|
||||||
recentPostsCache)
|
recentPostsCache)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
if invalidCiphertext(contentStr):
|
||||||
|
print('WARN: Invalid ciphertext within announce ' +
|
||||||
|
str(announcedJson))
|
||||||
|
return None
|
||||||
|
|
||||||
# remove any long words
|
# remove any long words
|
||||||
contentStr = removeLongWords(contentStr, 40, [])
|
contentStr = removeLongWords(contentStr, 40, [])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue