Only abandon post if signature checking is strict

merge-requests/30/head
Bob Mottram 2021-01-05 12:13:18 +00:00
parent 75788fd9f8
commit 584fe93b56
1 changed files with 6 additions and 5 deletions

View File

@ -2745,6 +2745,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
else: else:
print('WARN: jsonld inbox signature check failed ' + print('WARN: jsonld inbox signature check failed ' +
keyId) keyId)
if verifyAllSignatures:
if os.path.isfile(queueFilename): if os.path.isfile(queueFilename):
os.remove(queueFilename) os.remove(queueFilename)
if len(queue) > 0: if len(queue) > 0: