Preserving reply scope

main
Bob Mottram 2020-02-11 10:24:22 +00:00
parent 211a45b207
commit ad7dfa1d3c
1 changed files with 9 additions and 8 deletions

View File

@ -2326,10 +2326,15 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
replyToLink+=pageNumberParam
replyStr=''
if not isModerationPost and showRepeatIcon:
if isPublicPostFromUrl(baseDir,nickname,domain,replyToLink):
if showRepeatIcon:
replyStr+= \
'<a href="/users/'+nickname+'?replyto='+replyToLink+ \
'?actor='+postJsonObject['actor']+ \
'" title="'+translate['Reply to this post']+'">'
else:
if isDM(postJsonObject):
replyStr+= \
'<a href="/users/'+nickname+'?replyto='+replyToLink+ \
'<a href="/users/'+nickname+'?replydm='+replyToLink+ \
'?actor='+postJsonObject['actor']+ \
'" title="'+translate['Reply to this post']+'">'
else:
@ -2337,11 +2342,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
'<a href="/users/'+nickname+'?replyfollowers='+replyToLink+ \
'?actor='+postJsonObject['actor']+ \
'" title="'+translate['Reply to this post']+'">'
else:
replyStr+= \
'<a href="/users/'+nickname+'?replydm='+replyToLink+ \
'?actor='+postJsonObject['actor']+ \
'" title="'+translate['Reply to this post']+'">'
replyStr+='<img loading="lazy" title="'+translate['Reply to this post']+' |" alt="'+translate['Reply to this post']+' |" src="/'+iconsDir+'/reply.png"/></a>'
announceStr=''