master
Bob Mottram 2019-08-07 12:49:38 +01:00
parent a4d4ca5186
commit 187de1f95a
1 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ def storeFollowRequest(baseDir: str, \
"""Stores the follow request for later use """Stores the follow request for later use
""" """
accountsDir=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow accountsDir=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow
if not os.path.isdir(accountDir): if not os.path.isdir(accountsDir):
return False return False
if port!=80 and port!=443: if port!=80 and port!=443:
@ -305,7 +305,7 @@ def storeFollowRequest(baseDir: str, \
approveHandle=nickname+'@'+domain approveHandle=nickname+'@'+domain
# add to a file which contains a list of requests # add to a file which contains a list of requests
approveFollowsFilename=accountDir+'/followrequests.txt' approveFollowsFilename=accountsDir+'/followrequests.txt'
if os.path.isfile(approveFollowsFilename): if os.path.isfile(approveFollowsFilename):
if approveHandle not in open(approveFollowsFilename).read(): if approveHandle not in open(approveFollowsFilename).read():
with open(approveFollowsFilename, "a") as fp: with open(approveFollowsFilename, "a") as fp: