forked from indymedia/epicyon
Don't link to person options for the news account
parent
4f76103e92
commit
4e183894f8
|
@ -4433,6 +4433,7 @@ def individualPostAsHtml(allowDownloads: bool,
|
|||
|
||||
if showAvatarOptions and \
|
||||
fullDomain + '/users/' + nickname not in postActor:
|
||||
if '/users/news/' not in avatarUrl:
|
||||
avatarLink = \
|
||||
' <a class="imageAnchor" href="/users/' + \
|
||||
nickname + '?options=' + postActor + \
|
||||
|
@ -4441,6 +4442,12 @@ def individualPostAsHtml(allowDownloads: bool,
|
|||
' <img loading="lazy" title="' + \
|
||||
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 = \
|
||||
' <div class="timeline-avatar">' + avatarLink.strip() + '</div>\n'
|
||||
|
||||
|
@ -4929,13 +4936,17 @@ def individualPostAsHtml(allowDownloads: bool,
|
|||
|
||||
if announceAvatarUrl:
|
||||
idx = 'Show options for this person'
|
||||
if '/users/news/' not in announceAvatarUrl:
|
||||
replyAvatarImageInPost = \
|
||||
' ' \
|
||||
'<div class="timeline-avatar-reply">\n' \
|
||||
'<div class=' + \
|
||||
'"timeline-avatar-reply">\n' \
|
||||
' ' + \
|
||||
'<a class="imageAnchor" ' + \
|
||||
'href="/users/' + nickname + \
|
||||
'?options=' + \
|
||||
announceActor + ';' + str(pageNumber) + \
|
||||
announceActor + ';' + \
|
||||
str(pageNumber) + \
|
||||
';' + announceAvatarUrl + \
|
||||
messageIdStr + '">' \
|
||||
'<img loading="lazy" src="' + \
|
||||
|
|
Loading…
Reference in New Issue