From 5a327d281efb17bbb1184bc2fcf3cb0141cfd006 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 Jan 2021 18:42:39 +0000 Subject: [PATCH] Debug --- inbox.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/inbox.py b/inbox.py index 5c2f0e2f4..db29ffb91 100644 --- a/inbox.py +++ b/inbox.py @@ -2710,18 +2710,19 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, queueJson['original'].get('signature'): # use the original json message received, not one which may have # been modified along the way + print('inbox signature: ' + str(pubKey)) print('inbox signature: ' + str(queueJson['original'])) - if not jsonldVerify(queueJson['original'], pubKey): - print('WARN: jsonld inbox signature check failed ' + - keyId + ' ' + pubKey + ' ' + - str(queueJson['original'])) - if os.path.isfile(queueFilename): - os.remove(queueFilename) - if len(queue) > 0: - queue.pop(0) - continue - else: - print('jsonld inbox signature check success') +# if not jsonldVerify(queueJson['original'], pubKey): +# print('WARN: jsonld inbox signature check failed ' + +# keyId + ' ' + pubKey + ' ' + +# str(queueJson['original'])) +# if os.path.isfile(queueFilename): +# os.remove(queueFilename) +# if len(queue) > 0: +# queue.pop(0) +# continue +# else: +# print('jsonld inbox signature check success') # set the id to the same as the post filename # This makes the filename and the id consistent