From 3c8b6e0a9af9d3649987086291a742c52fe1e1c8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Oct 2020 10:35:50 +0100 Subject: [PATCH] Don't link to profile for news avatar --- webinterface.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/webinterface.py b/webinterface.py index bffba3dd3..4b950af01 100644 --- a/webinterface.py +++ b/webinterface.py @@ -4426,10 +4426,17 @@ def individualPostAsHtml(allowDownloads: bool, if timeDiff > 100: print('TIMING INDIV ' + boxName + ' 7 = ' + str(timeDiff)) - avatarLink = ' ' - avatarLink += \ - '  \n' + if '/users/news/' not in avatarUrl: + avatarLink = ' ' + avatarLink += \ + '  \n' + else: + avatarLink += \ + '  \n' if showAvatarOptions and \ fullDomain + '/users/' + nickname not in postActor: