main
Bob Mottram 2020-12-01 10:03:21 +00:00
parent 2a93d6ee64
commit 3ee24118c2
1 changed files with 5 additions and 5 deletions

View File

@ -270,12 +270,13 @@ def getReplyIconHtml(nickname: str, isPublicRepeat: bool,
replyToLink += pageNumberParam replyToLink += pageNumberParam
replyStr = '' replyStr = ''
replyToThisPostStr = translate['Reply to this post']
if isPublicRepeat: if isPublicRepeat:
replyStr += \ replyStr += \
' <a class="imageAnchor" href="/users/' + \ ' <a class="imageAnchor" href="/users/' + \
nickname + '?replyto=' + replyToLink + \ nickname + '?replyto=' + replyToLink + \
'?actor=' + postJsonObject['actor'] + \ '?actor=' + postJsonObject['actor'] + \
'" title="' + translate['Reply to this post'] + '">\n' '" title="' + replyToThisPostStr + '">\n'
else: else:
if isDM(postJsonObject): if isDM(postJsonObject):
replyStr += \ replyStr += \
@ -283,20 +284,19 @@ def getReplyIconHtml(nickname: str, isPublicRepeat: bool,
'<a class="imageAnchor" href="/users/' + nickname + \ '<a class="imageAnchor" href="/users/' + nickname + \
'?replydm=' + replyToLink + \ '?replydm=' + replyToLink + \
'?actor=' + postJsonObject['actor'] + \ '?actor=' + postJsonObject['actor'] + \
'" title="' + translate['Reply to this post'] + '">\n' '" title="' + replyToThisPostStr + '">\n'
else: else:
replyStr += \ replyStr += \
' ' + \ ' ' + \
'<a class="imageAnchor" href="/users/' + nickname + \ '<a class="imageAnchor" href="/users/' + nickname + \
'?replyfollowers=' + replyToLink + \ '?replyfollowers=' + replyToLink + \
'?actor=' + postJsonObject['actor'] + \ '?actor=' + postJsonObject['actor'] + \
'" title="' + translate['Reply to this post'] + '">\n' '" title="' + replyToThisPostStr + '">\n'
replyStr += \ replyStr += \
' ' + \ ' ' + \
'<img loading="lazy" title="' + \ '<img loading="lazy" title="' + \
translate['Reply to this post'] + '" alt="' + \ replyToThisPostStr + '" alt="' + replyToThisPostStr + \
translate['Reply to this post'] + \
' |" src="/' + iconsPath + '/reply.png"/></a>\n' ' |" src="/' + iconsPath + '/reply.png"/></a>\n'
return replyStr return replyStr