forked from indymedia/epicyon
Sequence
parent
3f7a175cac
commit
365b544d87
|
@ -334,9 +334,9 @@ def receiveFollowRequest(session,baseDir: str,httpPrefix: str, \
|
||||||
# what is the followers policy?
|
# what is the followers policy?
|
||||||
if followApprovalRequired(baseDir,nicknameToFollow, \
|
if followApprovalRequired(baseDir,nicknameToFollow, \
|
||||||
domainToFollow,debug):
|
domainToFollow,debug):
|
||||||
approveHandle=nicknameToFollow+'@'+domainToFollow+':'+str(port)
|
|
||||||
accountsDir=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow
|
accountsDir=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow
|
||||||
if os.path.isdir(accountDir):
|
if os.path.isdir(accountDir):
|
||||||
|
approveHandle=nicknameToFollow+'@'+domainToFollow+':'+str(port)
|
||||||
approveFollowsFilename=accountDir+'/followrequests.txt'
|
approveFollowsFilename=accountDir+'/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():
|
||||||
|
|
Loading…
Reference in New Issue