Second published link

main
Bob Mottram 2020-02-25 14:30:45 +00:00
parent 756bfde261
commit 3ccd44ab21
1 changed files with 1 additions and 4 deletions

View File

@ -3218,13 +3218,10 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
publishedLink=messageId
# blog posts should have no /statuses/ in their link
if isBlogPost(postJsonObject):
print('Test messageId '+messageId)
print('Test domain '+domain)
# is this a post to the local domain?
if '://'+domain in messageId:
publishedLink=messageId.replace('/statuses/','/')
print('Test publishedLink '+publishedLink)
footerStr='<a href="'+publishedLink+'" class="'+timeClass+'">'+publishedStr+'</a>\n'
# change the background color for DMs in inbox timeline
@ -3235,7 +3232,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
if showIcons:
footerStr='<div class="'+containerClassIcons+'">'
footerStr+=replyStr+announceStr+likeStr+bookmarkStr+deleteStr+muteStr
footerStr+='<a href="'+messageId+'" class="'+timeClass+'">'+publishedStr+'</a>\n'
footerStr+='<a href="'+publishedLink+'" class="'+timeClass+'">'+publishedStr+'</a>\n'
footerStr+='</div>'
postIsSensitive=False