Link to blog post

main
Bob Mottram 2020-02-25 15:32:43 +00:00
parent 8d22d8493a
commit 70277ab4d9
1 changed files with 4 additions and 1 deletions

View File

@ -35,8 +35,11 @@ def htmlBlogPostContent(baseDir: str,httpPrefix: str,translate: {}, \
linkedAuthor=False
actor=''
blogStr=''
messageLink=''
if postJsonObject['object'].get('id'):
messageLink=postJsonObject['object']['id'].replace('/statuses/','/')
if postJsonObject['object'].get('summary'):
blogStr+='<h1>'+postJsonObject['object']['summary']+'</h1>\n'
blogStr+='<h1><a href="'+messageLink+'">'+postJsonObject['object']['summary']+'</a></h1>\n'
# get the handle of the author
if postJsonObject['object'].get('attributedTo'):