mirror of https://gitlab.com/bashrc2/epicyon
Record any unknown json sigtaure types
parent
c3a91fc574
commit
857b788ae1
18
inbox.py
18
inbox.py
|
@ -2991,6 +2991,24 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
if unknownFile:
|
if unknownFile:
|
||||||
unknownFile.write(unknownContext + '\n')
|
unknownFile.write(unknownContext + '\n')
|
||||||
unknownFile.close()
|
unknownFile.close()
|
||||||
|
else:
|
||||||
|
print('Unrecognized jsonld signature type: ' +
|
||||||
|
jwebsigType)
|
||||||
|
|
||||||
|
unknownSignaturesFile = \
|
||||||
|
baseDir + '/accounts/unknownJsonSignatures.txt'
|
||||||
|
|
||||||
|
alreadyUnknown = False
|
||||||
|
if os.path.isfile(unknownSignaturesFile):
|
||||||
|
if jwebsigType in \
|
||||||
|
open(unknownSignaturesFile).read():
|
||||||
|
alreadyUnknown = True
|
||||||
|
|
||||||
|
if not alreadyUnknown:
|
||||||
|
unknownFile = open(unknownSignaturesFile, "a+")
|
||||||
|
if unknownFile:
|
||||||
|
unknownFile.write(jwebsigType + '\n')
|
||||||
|
unknownFile.close()
|
||||||
|
|
||||||
# strict enforcement of json signatures
|
# strict enforcement of json signatures
|
||||||
if not hasJsonSignature:
|
if not hasJsonSignature:
|
||||||
|
|
Loading…
Reference in New Issue