From 5df93a0f2081bd8fc49ac1aea1aa1857b74b4dde Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 14:44:43 +0100 Subject: [PATCH] Debug --- webinterface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webinterface.py b/webinterface.py index 16cb6574..e09f02c1 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1043,8 +1043,10 @@ def individualPostAsHtml(baseDir: str, \ announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain) if announcedJson: if not announcedJson.get('actor'): + pprint(announcedJson) return '' if not announcedJson.get('type'): + pprint(announcedJson) return '' if announcedJson['type']!='Note': pprint(announcedJson) @@ -1055,6 +1057,7 @@ def individualPostAsHtml(baseDir: str, \ actorNickname,actorDomain,actorPort, \ announcedJson) if announcedJson['type']!='Create': + pprint(announcedJson) return '' postJsonObject=announcedJson with open(announceFilename, 'w') as fp: