master
Bob Mottram 2019-08-07 13:55:22 +01:00
parent d7d46bdbee
commit e8e347199c
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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: