diff --git a/follow.py b/follow.py index 27523a40..d1ea38e7 100644 --- a/follow.py +++ b/follow.py @@ -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):