From 8265538c55373444fcb0f227fbcc29fd80df39fd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Dec 2019 19:00:28 +0000 Subject: [PATCH] Post ids --- webinterface.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/webinterface.py b/webinterface.py index e422770f8..8ce9703a5 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2172,7 +2172,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ replyStr='' if showIcons: - replyToLink=messageId + replyToLink=postJsonObject['object']['id'] if postJsonObject['object'].get('attributedTo'): replyToLink+='?mention='+postJsonObject['object']['attributedTo'] if postJsonObject['object'].get('content'): @@ -2215,7 +2215,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ announceLink='unrepeat' announceTitle=translate['Undo the repeat'] announceStr= \ - '' @@ -2250,7 +2250,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ bookmarkTitle=translate['Undo the bookmark'] bookmarkStr= \ '' @@ -2292,7 +2292,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ addEmojiToDisplayName(baseDir,httpPrefix, \ nickname,domain, \ announceDisplayName,False) - titleStr+=' '+translate['announces']+' '+announceDisplayName+'' + titleStr+=' '+translate['announces']+' '+announceDisplayName+'' # show avatar of person replied to announceActor=postJsonObject['object']['attributedTo'] announceAvatarUrl=getPersonAvatarUrl(baseDir,announceActor,personCache) @@ -2304,11 +2304,11 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ 'title="'+translate['Show options for this person']+ \ '" alt=" "'+avatarPosition+'/>' else: - titleStr+=' '+translate['announces']+' @'+announceNickname+'@'+announceDomain+'' + titleStr+=' '+translate['announces']+' @'+announceNickname+'@'+announceDomain+'' else: - titleStr+=' '+translate['announces']+' @unattributed' + titleStr+=' '+translate['announces']+' @unattributed' else: - titleStr+=' '+translate['announces']+' @unattributed' + titleStr+=' '+translate['announces']+' @unattributed' else: if postJsonObject['object'].get('inReplyTo'): containerClassIcons='containericons darker' @@ -2380,7 +2380,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ if postJsonObject['object'].get('url'): imagePostUrl=postJsonObject['object']['url'] else: - imagePostUrl=messageId + imagePostUrl=postJsonObject['object']['id'] if imageDescription: galleryStr+='
'+imageDescription+'
\n' else: @@ -2418,7 +2418,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ if postJsonObject['object'].get('url'): videoPostUrl=postJsonObject['object']['url'] else: - videoPostUrl=messageId + videoPostUrl=postJsonObject['object']['id'] if imageDescription: galleryStr+='
'+imageDescription+'
\n' else: @@ -2455,7 +2455,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ if postJsonObject['object'].get('url'): audioPostUrl=postJsonObject['object']['url'] else: - audioPostUrl=messageId + audioPostUrl=postJsonObject['object']['id'] if imageDescription: galleryStr+='
'+imageDescription+'
\n' else: