From e8e347199c12a06ebd6db515b2bf074fd29b912e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 7 Aug 2019 13:55:22 +0100 Subject: [PATCH] accounts --- epicyon.py | 2 +- manualapprove.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/epicyon.py b/epicyon.py index bc793d02f..85a0e0486 100644 --- a/epicyon.py +++ b/epicyon.py @@ -395,7 +395,7 @@ if args.followerspending: sys.exit() accountsDir=baseDir+'/accounts/'+args.nickname+'@'+domain - approveFollowsFilename=accountDir+'/followrequests.txt' + approveFollowsFilename=accountsDir+'/followrequests.txt' approveCtr=0 if os.path.isfile(approveFollowsFilename): with open(approveFollowsFilename, 'r') as approvefile: diff --git a/manualapprove.py b/manualapprove.py index f02a0afbc..e564f5251 100644 --- a/manualapprove.py +++ b/manualapprove.py @@ -17,7 +17,7 @@ def manualDenyFollowRequest(baseDir: str,nickname: str,domain: str,denyHandle: s """ handle=args.nickname+'@'+domain accountsDir=baseDir+'/accounts/'+handle - approveFollowsFilename=accountDir+'/followrequests.txt' + approveFollowsFilename=accountsDir+'/followrequests.txt' if handle in open(approveFollowsFilename).read(): with open(approveFollowsFilename+'.new', 'w') as approvefilenew: with open(approveFollowsFilename, 'r') as approvefile: @@ -40,7 +40,7 @@ def manualApproveFollowRequest(session,baseDir: str, \ """ handle=nickname+'@'+domain accountsDir=baseDir+'/accounts/'+handle - approveFollowsFilename=accountDir+'/followrequests.txt' + approveFollowsFilename=accountsDir+'/followrequests.txt' if handle in open(approveFollowsFilename).read(): with open(approveFollowsFilename+'.new', 'w') as approvefilenew: with open(approveFollowsFilename, 'r') as approvefile: