forked from indymedia/epicyon
Preserving reply scope
parent
211a45b207
commit
ad7dfa1d3c
|
@ -2326,10 +2326,15 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
|
||||||
replyToLink+=pageNumberParam
|
replyToLink+=pageNumberParam
|
||||||
|
|
||||||
replyStr=''
|
replyStr=''
|
||||||
if not isModerationPost and showRepeatIcon:
|
if showRepeatIcon:
|
||||||
if isPublicPostFromUrl(baseDir,nickname,domain,replyToLink):
|
replyStr+= \
|
||||||
|
'<a href="/users/'+nickname+'?replyto='+replyToLink+ \
|
||||||
|
'?actor='+postJsonObject['actor']+ \
|
||||||
|
'" title="'+translate['Reply to this post']+'">'
|
||||||
|
else:
|
||||||
|
if isDM(postJsonObject):
|
||||||
replyStr+= \
|
replyStr+= \
|
||||||
'<a href="/users/'+nickname+'?replyto='+replyToLink+ \
|
'<a href="/users/'+nickname+'?replydm='+replyToLink+ \
|
||||||
'?actor='+postJsonObject['actor']+ \
|
'?actor='+postJsonObject['actor']+ \
|
||||||
'" title="'+translate['Reply to this post']+'">'
|
'" title="'+translate['Reply to this post']+'">'
|
||||||
else:
|
else:
|
||||||
|
@ -2337,11 +2342,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
|
||||||
'<a href="/users/'+nickname+'?replyfollowers='+replyToLink+ \
|
'<a href="/users/'+nickname+'?replyfollowers='+replyToLink+ \
|
||||||
'?actor='+postJsonObject['actor']+ \
|
'?actor='+postJsonObject['actor']+ \
|
||||||
'" title="'+translate['Reply to this post']+'">'
|
'" 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>'
|
replyStr+='<img loading="lazy" title="'+translate['Reply to this post']+' |" alt="'+translate['Reply to this post']+' |" src="/'+iconsDir+'/reply.png"/></a>'
|
||||||
|
|
||||||
announceStr=''
|
announceStr=''
|
||||||
|
|
Loading…
Reference in New Issue