forked from indymedia/epicyon
Don't link to person options for the news account
parent
4f76103e92
commit
4e183894f8
|
@ -4433,14 +4433,21 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
|
|
||||||
if showAvatarOptions and \
|
if showAvatarOptions and \
|
||||||
fullDomain + '/users/' + nickname not in postActor:
|
fullDomain + '/users/' + nickname not in postActor:
|
||||||
avatarLink = \
|
if '/users/news/' not in avatarUrl:
|
||||||
' <a class="imageAnchor" href="/users/' + \
|
avatarLink = \
|
||||||
nickname + '?options=' + postActor + \
|
' <a class="imageAnchor" href="/users/' + \
|
||||||
';' + str(pageNumber) + ';' + avatarUrl + messageIdStr + '">\n'
|
nickname + '?options=' + postActor + \
|
||||||
avatarLink += \
|
';' + str(pageNumber) + ';' + avatarUrl + messageIdStr + '">\n'
|
||||||
' <img loading="lazy" title="' + \
|
avatarLink += \
|
||||||
translate['Show options for this person'] + \
|
' <img loading="lazy" title="' + \
|
||||||
'" src="' + avatarUrl + '" ' + avatarPosition + '/></a>\n'
|
translate['Show options for this person'] + \
|
||||||
|
'" src="' + avatarUrl + '" ' + avatarPosition + '/></a>\n'
|
||||||
|
else:
|
||||||
|
# don't link to the person options for the news account
|
||||||
|
avatarLink += \
|
||||||
|
' <img loading="lazy" title="' + \
|
||||||
|
translate['Show options for this person'] + \
|
||||||
|
'" src="' + avatarUrl + '" ' + avatarPosition + '/>\n'
|
||||||
avatarImageInPost = \
|
avatarImageInPost = \
|
||||||
' <div class="timeline-avatar">' + avatarLink.strip() + '</div>\n'
|
' <div class="timeline-avatar">' + avatarLink.strip() + '</div>\n'
|
||||||
|
|
||||||
|
@ -4929,20 +4936,24 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
|
|
||||||
if announceAvatarUrl:
|
if announceAvatarUrl:
|
||||||
idx = 'Show options for this person'
|
idx = 'Show options for this person'
|
||||||
replyAvatarImageInPost = \
|
if '/users/news/' not in announceAvatarUrl:
|
||||||
' ' \
|
replyAvatarImageInPost = \
|
||||||
'<div class="timeline-avatar-reply">\n' \
|
' ' \
|
||||||
' <a class="imageAnchor" ' + \
|
'<div class=' + \
|
||||||
'href="/users/' + nickname + \
|
'"timeline-avatar-reply">\n' \
|
||||||
'?options=' + \
|
' ' + \
|
||||||
announceActor + ';' + str(pageNumber) + \
|
'<a class="imageAnchor" ' + \
|
||||||
';' + announceAvatarUrl + \
|
'href="/users/' + nickname + \
|
||||||
messageIdStr + '">' \
|
'?options=' + \
|
||||||
'<img loading="lazy" src="' + \
|
announceActor + ';' + \
|
||||||
announceAvatarUrl + '" ' \
|
str(pageNumber) + \
|
||||||
'title="' + translate[idx] + \
|
';' + announceAvatarUrl + \
|
||||||
'" alt=" "' + avatarPosition + \
|
messageIdStr + '">' \
|
||||||
'/></a>\n </div>\n'
|
'<img loading="lazy" src="' + \
|
||||||
|
announceAvatarUrl + '" ' \
|
||||||
|
'title="' + translate[idx] + \
|
||||||
|
'" alt=" "' + avatarPosition + \
|
||||||
|
'/></a>\n </div>\n'
|
||||||
else:
|
else:
|
||||||
titleStr += \
|
titleStr += \
|
||||||
' <img loading="lazy" title="' + \
|
' <img loading="lazy" title="' + \
|
||||||
|
|
Loading…
Reference in New Issue