Remove from follow requests

main2
Bob Mottram 2019-09-18 18:30:19 +01:00
parent 58579f48a2
commit 5e57bf191b
2 changed files with 6 additions and 0 deletions

View File

@ -559,6 +559,11 @@ def followedAccountRejects(session,baseDir: str,httpPrefix: str, \
' port '+str(port)+' to '+ \
nickname+'@'+domain+' port '+ str(fromPort))
clientToServer=False
denyHandle=nickname+'@'+domain
if fromPort:
if fromPort!=80 and fromPort!=443:e
denyHandle=denyHandle+':'+str(fromPort)
removeFromFollowRequests(baseDir,nicknameToFollow,domainToFollow,denyHandle)
return sendSignedJson(rejectJson,session,baseDir, \
nicknameToFollow,domainToFollow,port, \
nickname,domain,fromPort, '', \

View File

@ -32,6 +32,7 @@ def manualDenyFollowRequest(session,baseDir: str, \
rejectedFollowsFilename=accountsDir+'/followrejects.txt'
if os.path.isfile(rejectedFollowsFilename):
if denyHandle in open(rejectedFollowsFilename).read():
removeFromFollowRequests(baseDir,nickname,domain,denyHandle)
print(denyHandle+' has already been rejected as a follower of '+nickname)
return