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: