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(':',' ')
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue