mirror of https://gitlab.com/bashrc2/epicyon
Deny using actor rather than handle
parent
b920aac6ab
commit
3b19512e4d
|
@ -6437,6 +6437,11 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
originPathStr = path.split('/followdeny=')[0]
|
||||
followerNickname = originPathStr.replace('/users/', '')
|
||||
followingHandle = path.split('/followdeny=')[1]
|
||||
if '://' in followingHandle:
|
||||
handleNickname = getNicknameFromActor(followingHandle)
|
||||
handleDomain, handlePort = getDomainFromActor(followingHandle)
|
||||
followingHandle = \
|
||||
handleNickname + '@' + getFullDomain(handleDomain, handlePort)
|
||||
if '@' in followingHandle:
|
||||
manualDenyFollowRequest(self.server.session,
|
||||
baseDir, httpPrefix,
|
||||
|
|
Loading…
Reference in New Issue