Handle domains with ports

master
Bob Mottram 2019-07-15 15:24:33 +01:00
parent e6b9a74ee4
commit 64eb4212b7
1 changed files with 2 additions and 0 deletions

View File

@ -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