From d523a6354da647b7f68dd4eac3c368652f510500 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Thu, 11 Jun 2020 13:46:44 +0100 Subject: [PATCH] Avoid duplicate prefixes --- utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 5b9a667f..b310735e 100644 --- a/utils.py +++ b/utils.py @@ -242,8 +242,7 @@ def getDomainFromActor(actor: str) -> (str, int): """Returns the domain name from an actor url """ port = None - prefixes = ('https://', 'http://', 'dat://', 'i2p://', 'gnunet://', - 'hyper://', 'gemini://', 'gopher://') + prefixes = getProtocolPrefixes() if '/profile/' in actor: domain = actor.split('/profile/')[0] for prefix in prefixes: