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 '+ \
|
' port '+str(port)+' to '+ \
|
||||||
nickname+'@'+domain+' port '+ str(fromPort))
|
nickname+'@'+domain+' port '+ str(fromPort))
|
||||||
clientToServer=False
|
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, \
|
return sendSignedJson(rejectJson,session,baseDir, \
|
||||||
nicknameToFollow,domainToFollow,port, \
|
nicknameToFollow,domainToFollow,port, \
|
||||||
nickname,domain,fromPort, '', \
|
nickname,domain,fromPort, '', \
|
||||||
|
|
|
@ -32,6 +32,7 @@ def manualDenyFollowRequest(session,baseDir: str, \
|
||||||
rejectedFollowsFilename=accountsDir+'/followrejects.txt'
|
rejectedFollowsFilename=accountsDir+'/followrejects.txt'
|
||||||
if os.path.isfile(rejectedFollowsFilename):
|
if os.path.isfile(rejectedFollowsFilename):
|
||||||
if denyHandle in open(rejectedFollowsFilename).read():
|
if denyHandle in open(rejectedFollowsFilename).read():
|
||||||
|
removeFromFollowRequests(baseDir,nickname,domain,denyHandle)
|
||||||
print(denyHandle+' has already been rejected as a follower of '+nickname)
|
print(denyHandle+' has already been rejected as a follower of '+nickname)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue