From 584fe93b56def35df1d2c16289a0ecaa47f00971 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 5 Jan 2021 12:13:18 +0000 Subject: [PATCH] Only abandon post if signature checking is strict --- inbox.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/inbox.py b/inbox.py index 7b567fe61..0b2922fea 100644 --- a/inbox.py +++ b/inbox.py @@ -2745,11 +2745,12 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, else: print('WARN: jsonld inbox signature check failed ' + keyId) - if os.path.isfile(queueFilename): - os.remove(queueFilename) - if len(queue) > 0: - queue.pop(0) - continue + if verifyAllSignatures: + if os.path.isfile(queueFilename): + os.remove(queueFilename) + if len(queue) > 0: + queue.pop(0) + continue else: print('jsonld inbox signature check success ' + keyId)