From 4e183894f8f66c73adb738df25ce3b4b4f970d05 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Oct 2020 10:27:05 +0100 Subject: [PATCH] Don't link to person options for the news account --- webinterface.py | 55 +++++++++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/webinterface.py b/webinterface.py index 84931362..bffba3dd 100644 --- a/webinterface.py +++ b/webinterface.py @@ -4433,14 +4433,21 @@ def individualPostAsHtml(allowDownloads: bool, if showAvatarOptions and \ fullDomain + '/users/' + nickname not in postActor: - avatarLink = \ - ' \n' - avatarLink += \ - ' \n' + if '/users/news/' not in avatarUrl: + avatarLink = \ + ' \n' + avatarLink += \ + ' \n' + else: + # don't link to the person options for the news account + avatarLink += \ + ' \n' avatarImageInPost = \ '
' + avatarLink.strip() + '
\n' @@ -4929,20 +4936,24 @@ def individualPostAsHtml(allowDownloads: bool, if announceAvatarUrl: idx = 'Show options for this person' - replyAvatarImageInPost = \ - ' ' \ - '
\n' \ - ' ' \ - ' \n
\n' + if '/users/news/' not in announceAvatarUrl: + replyAvatarImageInPost = \ + ' ' \ + '
\n' \ + ' ' + \ + '' \ + ' \n
\n' else: titleStr += \ '