master
Bob Mottram 2019-07-19 21:08:02 +01:00
parent 3f7a175cac
commit 365b544d87
1 changed files with 1 additions and 1 deletions

View File

@ -334,9 +334,9 @@ def receiveFollowRequest(session,baseDir: str,httpPrefix: str, \
# what is the followers policy?
if followApprovalRequired(baseDir,nicknameToFollow, \
domainToFollow,debug):
approveHandle=nicknameToFollow+'@'+domainToFollow+':'+str(port)
accountsDir=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow
if os.path.isdir(accountDir):
approveHandle=nicknameToFollow+'@'+domainToFollow+':'+str(port)
approveFollowsFilename=accountDir+'/followrequests.txt'
if os.path.isfile(approveFollowsFilename):
if approveHandle not in open(approveFollowsFilename).read():