mirror of https://gitlab.com/bashrc2/epicyon
Remove from follow requests
parent
58579f48a2
commit
5e57bf191b
|
@ -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, '', \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue