From d76c2b8b22c2701f78ecb7adacfcc1bdd9eab36e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 18 Sep 2019 20:05:08 +0100 Subject: [PATCH] Reverse logic --- follow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/follow.py b/follow.py index d1ea38e7..f0327cdd 100644 --- a/follow.py +++ b/follow.py @@ -360,7 +360,7 @@ def storeFollowRequest(baseDir: str, \ # should this follow be denied? denyFollowsFilename=accountsDir+'/followrejects.txt' if os.path.isfile(denyFollowsFilename): - if approveHandle not in open(denyFollowsFilename).read(): + if approveHandle in open(denyFollowsFilename).read(): return True # add to a file which contains a list of requests