From 64eb4212b7d8f5101306d7dc09cc4272f04b4495 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Jul 2019 15:24:33 +0100 Subject: [PATCH] Handle domains with ports --- content.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content.py b/content.py index ab269dbc..a78ca914 100644 --- a/content.py +++ b/content.py @@ -19,6 +19,8 @@ def addMentions(baseDir: str,httpPrefix: str, \ wordsOnly=content.replace(',',' ').replace(';',' ').replace('.',' ').replace(':',' ') words=wordsOnly.split(' ') replaceMentions={} + if ':' in domain: + domain=domain.split(':')[0] followingFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/following.txt' if not os.path.isfile(followingFilename): return content