From 18dfbf6e3b9f36ed5d15abf083712526079749bd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 13 Jan 2020 12:45:27 +0000 Subject: [PATCH] More debug --- outbox.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/outbox.py b/outbox.py index 240f212a9..0c6055479 100644 --- a/outbox.py +++ b/outbox.py @@ -65,8 +65,21 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \ messageJson.get('actor') and \ messageJson.get('object') and \ messageJson.get('to')): - if debug: - print('DEBUG: POST to outbox - Create does not have the required parameters') + if not messageJson.get('id'): + if debug: + print('DEBUG: POST to outbox - Create does not have the id parameter '+str(messageJson)) + elif not messageJson.get('id'): + if debug: + print('DEBUG: POST to outbox - Create does not have the type parameter '+str(messageJson)) + elif not messageJson.get('id'): + if debug: + print('DEBUG: POST to outbox - Create does not have the actor parameter '+str(messageJson)) + elif not messageJson.get('id'): + if debug: + print('DEBUG: POST to outbox - Create does not have the object parameter '+str(messageJson)) + else: + if debug: + print('DEBUG: POST to outbox - Create does not have the "to" parameter '+str(messageJson)) return False testDomain,testPort=getDomainFromActor(messageJson['actor']) if testPort: