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)
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: