Set id of announce to original object

master
Bob Mottram 2019-08-20 15:06:42 +01:00
parent a8af2e6e99
commit 1181178d3b
1 changed files with 3 additions and 0 deletions

View File

@ -1056,6 +1056,9 @@ def individualPostAsHtml(baseDir: str, \
if announcedJson['type']!='Create':
pprint(announcedJson)
return ''
# set the id to the original status
announcedJson['id']=postJsonObject['object']
announcedJson['object']['id']=postJsonObject['object']
postJsonObject=announcedJson
with open(announceFilename, 'w') as fp:
commentjson.dump(postJsonObject, fp, indent=4, sort_keys=False)