mirror of https://gitlab.com/bashrc2/epicyon
Handle domains with ports
parent
e6b9a74ee4
commit
64eb4212b7
|
@ -19,6 +19,8 @@ def addMentions(baseDir: str,httpPrefix: str, \
|
||||||
wordsOnly=content.replace(',',' ').replace(';',' ').replace('.',' ').replace(':',' ')
|
wordsOnly=content.replace(',',' ').replace(';',' ').replace('.',' ').replace(':',' ')
|
||||||
words=wordsOnly.split(' ')
|
words=wordsOnly.split(' ')
|
||||||
replaceMentions={}
|
replaceMentions={}
|
||||||
|
if ':' in domain:
|
||||||
|
domain=domain.split(':')[0]
|
||||||
followingFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/following.txt'
|
followingFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/following.txt'
|
||||||
if not os.path.isfile(followingFilename):
|
if not os.path.isfile(followingFilename):
|
||||||
return content
|
return content
|
||||||
|
|
Loading…
Reference in New Issue