From 7084a2059f04eca94ee717db66de52df9670ada9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 16 Dec 2020 11:33:45 +0000 Subject: [PATCH] Fix port number bug Not noticed because in the wild port number extensions are rarely used --- posts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/posts.py b/posts.py index 27baf1eb0..f0728783b 100644 --- a/posts.py +++ b/posts.py @@ -1781,10 +1781,7 @@ def sendPostViaServer(projectVersion: str, print('WARN: No session for sendPostViaServer') return 6 - if toPort: - if toPort != 80 and toPort != 443: - if ':' not in fromDomain: - fromDomain = fromDomain + ':' + str(fromPort) + fromDomain = getFullDomain(fromDomain, fromPort) handle = httpPrefix + '://' + fromDomain + '/@' + fromNickname