forked from indymedia/epicyon
Accounts
This commit is contained in:
1 parent
a4d4ca5186
commit
187de1f95a
1 file changed
+2
-2
@@ -296,7 +296,7 @@ def storeFollowRequest(baseDir: str, \
|
||||
"""Stores the follow request for later use
|
||||
"""
|
||||
accountsDir=baseDir+'/accounts/'+nicknameToFollow+'@'+domainToFollow
|
||||
if not os.path.isdir(accountDir):
|
||||
if not os.path.isdir(accountsDir):
|
||||
return False
|
||||
|
||||
if port!=80 and port!=443:
|
||||
@@ -305,7 +305,7 @@ def storeFollowRequest(baseDir: str, \
|
||||
approveHandle=nickname+'@'+domain
|
||||
|
||||
# add to a file which contains a list of requests
|
||||
approveFollowsFilename=accountDir+'/followrequests.txt'
|
||||
approveFollowsFilename=accountsDir+'/followrequests.txt'
|
||||
if os.path.isfile(approveFollowsFilename):
|
||||
if approveHandle not in open(approveFollowsFilename).read():
|
||||
with open(approveFollowsFilename, "a") as fp:
|
||||
|
||||
Reference in new issue
Block a user