From 187de1f95ab593aef5464275127d35a656aba2a4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 7 Aug 2019 12:49:38 +0100 Subject: [PATCH] Accounts --- follow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/follow.py b/follow.py index 36929869..80375f99 100644 --- a/follow.py +++ b/follow.py @@ -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: