master
Bob Mottram 2019-08-20 14:44:43 +01:00
parent 49e4985a90
commit 5df93a0f20
1 changed files with 3 additions and 0 deletions

View File

@ -1043,8 +1043,10 @@ def individualPostAsHtml(baseDir: str, \
announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain) announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain)
if announcedJson: if announcedJson:
if not announcedJson.get('actor'): if not announcedJson.get('actor'):
pprint(announcedJson)
return '' return ''
if not announcedJson.get('type'): if not announcedJson.get('type'):
pprint(announcedJson)
return '' return ''
if announcedJson['type']!='Note': if announcedJson['type']!='Note':
pprint(announcedJson) pprint(announcedJson)
@ -1055,6 +1057,7 @@ def individualPostAsHtml(baseDir: str, \
actorNickname,actorDomain,actorPort, \ actorNickname,actorDomain,actorPort, \
announcedJson) announcedJson)
if announcedJson['type']!='Create': if announcedJson['type']!='Create':
pprint(announcedJson)
return '' return ''
postJsonObject=announcedJson postJsonObject=announcedJson
with open(announceFilename, 'w') as fp: with open(announceFilename, 'w') as fp: