master
Bob Mottram 2019-08-20 13:43:12 +01:00
parent 24090ea419
commit 50b1f63dcf
1 changed files with 3 additions and 0 deletions

View File

@ -1036,6 +1036,9 @@ def individualPostAsHtml(baseDir: str, \
asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'} asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'}
announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain) announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain)
if announcedJson: if announcedJson:
pprint(announcedJson)
if not announcedJson.get('actor'):
return ''
if not announcedJson.get('type'): if not announcedJson.get('type'):
return '' return ''
if announcedJson['type']!='Create': if announcedJson['type']!='Create':