diff --git a/inbox.py b/inbox.py index 0ea654c66..b35498529 100644 --- a/inbox.py +++ b/inbox.py @@ -2991,6 +2991,24 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, if unknownFile: unknownFile.write(unknownContext + '\n') 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 if not hasJsonSignature: