From 0ff2f70547719f132046c667c90d1737c1dcf392 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 28 Nov 2019 12:09:34 +0000 Subject: [PATCH] Get full domain before icon strings --- webinterface.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webinterface.py b/webinterface.py index 4d2b65705..abc5cefca 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2091,6 +2091,12 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ if messageId: messageIdStr=';'+messageId + fullDomain=domain + if port: + if port!=80 and port!=443: + if ':' not in domain: + fullDomain=domain+':'+str(port) + announceStr='' if not isModerationPost and showRepeatIcon: # don't allow announce/repeat of your own posts @@ -2325,12 +2331,6 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ if not avatarUrl: avatarUrl=postActor+'/avatar.png' - - fullDomain=domain - if port: - if port!=80 and port!=443: - if ':' not in domain: - fullDomain=domain+':'+str(port) if fullDomain not in postActor: inboxUrl,pubKeyId,pubKey,fromPersonId,sharedInbox,capabilityAcquisition,avatarUrl2,displayName = \