forked from indymedia/epicyon
Include actor in links
parent
b0b5f1fece
commit
50ea25d767
|
@ -2190,7 +2190,10 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
announceIcon='repeat.png'
|
announceIcon='repeat.png'
|
||||||
announceLink='unrepeat'
|
announceLink='unrepeat'
|
||||||
announceTitle=translate['Undo the repeat']
|
announceTitle=translate['Undo the repeat']
|
||||||
announceStr='<a href="/users/'+nickname+'?'+announceLink+'='+postJsonObject['object']['id']+pageNumberParam+'?tl='+boxName+'" title="'+announceTitle+'">'
|
announceStr= \
|
||||||
|
'<a href="/users/'+nickname+'?'+announceLink+'='+postJsonObject['object']['id']+pageNumberParam+ \
|
||||||
|
'?actor='+postJsonObject['actor']+ \
|
||||||
|
'?tl='+boxName+'" title="'+announceTitle+'">'
|
||||||
announceStr+='<img loading="lazy" src="/'+iconsDir+'/'+announceIcon+'"/></a>'
|
announceStr+='<img loading="lazy" src="/'+iconsDir+'/'+announceIcon+'"/></a>'
|
||||||
|
|
||||||
likeStr=''
|
likeStr=''
|
||||||
|
@ -2203,7 +2206,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
if likedByPerson(postJsonObject,nickname,fullDomain):
|
if likedByPerson(postJsonObject,nickname,fullDomain):
|
||||||
likeLink='unlike'
|
likeLink='unlike'
|
||||||
likeTitle=translate['Undo the like']
|
likeTitle=translate['Undo the like']
|
||||||
likeStr='<a href="/users/'+nickname+'?'+likeLink+'='+postJsonObject['object']['id']+pageNumberParam+'?tl='+boxName+'" title="'+likeTitle+'">'
|
likeStr= \
|
||||||
|
'<a href="/users/' + nickname + '?' + \
|
||||||
|
likeLink + '=' + postJsonObject['object']['id'] + pageNumberParam + \
|
||||||
|
'?actor='+postJsonObject['actor']+ \
|
||||||
|
'?tl='+boxName+'" title="'+likeTitle+'">'
|
||||||
likeStr+='<img loading="lazy" src="/'+iconsDir+'/'+likeIcon+'"/></a>'
|
likeStr+='<img loading="lazy" src="/'+iconsDir+'/'+likeIcon+'"/></a>'
|
||||||
|
|
||||||
deleteStr=''
|
deleteStr=''
|
||||||
|
@ -2236,11 +2243,20 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
footerStr='<div class="'+containerClassIcons+'">'
|
footerStr='<div class="'+containerClassIcons+'">'
|
||||||
if not isModerationPost and showRepeatIcon:
|
if not isModerationPost and showRepeatIcon:
|
||||||
if not manuallyApprovesFollowers:
|
if not manuallyApprovesFollowers:
|
||||||
footerStr+='<a href="/users/'+nickname+'?replyto='+replyToLink+'" title="'+translate['Reply to this post']+'">'
|
footerStr+= \
|
||||||
|
'<a href="/users/'+nickname+'?replyto='+replyToLink+ \
|
||||||
|
'?actor='+postJsonObject['actor']+ \
|
||||||
|
'" title="'+translate['Reply to this post']+'">'
|
||||||
else:
|
else:
|
||||||
footerStr+='<a href="/users/'+nickname+'?replyfollowers='+replyToLink+'" title="'+translate['Reply to this post']+'">'
|
footerStr+= \
|
||||||
|
'<a href="/users/'+nickname+'?replyfollowers='+replyToLink+ \
|
||||||
|
'?actor='+postJsonObject['actor']+ \
|
||||||
|
'" title="'+translate['Reply to this post']+'">'
|
||||||
else:
|
else:
|
||||||
footerStr+='<a href="/users/'+nickname+'?replydm='+replyToLink+'" title="'+translate['Reply to this post']+'">'
|
footerStr+= \
|
||||||
|
'<a href="/users/'+nickname+'?replydm='+replyToLink+ \
|
||||||
|
'?actor='+postJsonObject['actor']+ \
|
||||||
|
'" title="'+translate['Reply to this post']+'">'
|
||||||
footerStr+='<img loading="lazy" src="/'+iconsDir+'/reply.png"/></a>'
|
footerStr+='<img loading="lazy" src="/'+iconsDir+'/reply.png"/></a>'
|
||||||
footerStr+=announceStr+likeStr+deleteStr
|
footerStr+=announceStr+likeStr+deleteStr
|
||||||
footerStr+='<span class="'+timeClass+'">'+publishedStr+'</span>'
|
footerStr+='<span class="'+timeClass+'">'+publishedStr+'</span>'
|
||||||
|
|
Loading…
Reference in New Issue