forked from indymedia/epicyon
accounts
parent
d7d46bdbee
commit
e8e347199c
|
@ -395,7 +395,7 @@ if args.followerspending:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
accountsDir=baseDir+'/accounts/'+args.nickname+'@'+domain
|
accountsDir=baseDir+'/accounts/'+args.nickname+'@'+domain
|
||||||
approveFollowsFilename=accountDir+'/followrequests.txt'
|
approveFollowsFilename=accountsDir+'/followrequests.txt'
|
||||||
approveCtr=0
|
approveCtr=0
|
||||||
if os.path.isfile(approveFollowsFilename):
|
if os.path.isfile(approveFollowsFilename):
|
||||||
with open(approveFollowsFilename, 'r') as approvefile:
|
with open(approveFollowsFilename, 'r') as approvefile:
|
||||||
|
|
|
@ -17,7 +17,7 @@ def manualDenyFollowRequest(baseDir: str,nickname: str,domain: str,denyHandle: s
|
||||||
"""
|
"""
|
||||||
handle=args.nickname+'@'+domain
|
handle=args.nickname+'@'+domain
|
||||||
accountsDir=baseDir+'/accounts/'+handle
|
accountsDir=baseDir+'/accounts/'+handle
|
||||||
approveFollowsFilename=accountDir+'/followrequests.txt'
|
approveFollowsFilename=accountsDir+'/followrequests.txt'
|
||||||
if handle in open(approveFollowsFilename).read():
|
if handle in open(approveFollowsFilename).read():
|
||||||
with open(approveFollowsFilename+'.new', 'w') as approvefilenew:
|
with open(approveFollowsFilename+'.new', 'w') as approvefilenew:
|
||||||
with open(approveFollowsFilename, 'r') as approvefile:
|
with open(approveFollowsFilename, 'r') as approvefile:
|
||||||
|
@ -40,7 +40,7 @@ def manualApproveFollowRequest(session,baseDir: str, \
|
||||||
"""
|
"""
|
||||||
handle=nickname+'@'+domain
|
handle=nickname+'@'+domain
|
||||||
accountsDir=baseDir+'/accounts/'+handle
|
accountsDir=baseDir+'/accounts/'+handle
|
||||||
approveFollowsFilename=accountDir+'/followrequests.txt'
|
approveFollowsFilename=accountsDir+'/followrequests.txt'
|
||||||
if handle in open(approveFollowsFilename).read():
|
if handle in open(approveFollowsFilename).read():
|
||||||
with open(approveFollowsFilename+'.new', 'w') as approvefilenew:
|
with open(approveFollowsFilename+'.new', 'w') as approvefilenew:
|
||||||
with open(approveFollowsFilename, 'r') as approvefile:
|
with open(approveFollowsFilename, 'r') as approvefile:
|
||||||
|
|
Loading…
Reference in New Issue