forked from indymedia/epicyon
Don't store follow request if it has already been denied
parent
7f9b9c5c92
commit
2dcf6a9af1
|
@ -357,6 +357,12 @@ def storeFollowRequest(baseDir: str, \
|
|||
' already following '+approveHandle)
|
||||
return True
|
||||
|
||||
# should this follow be denied?
|
||||
denyFollowsFilename=accountsDir+'/followrejects.txt'
|
||||
if os.path.isfile(denyFollowsFilename):
|
||||
if approveHandle not in open(denyFollowsFilename).read():
|
||||
return True
|
||||
|
||||
# add to a file which contains a list of requests
|
||||
approveFollowsFilename=accountsDir+'/followrequests.txt'
|
||||
if os.path.isfile(approveFollowsFilename):
|
||||
|
|
Loading…
Reference in New Issue