Deny using actor rather than handle

merge-requests/21/head
Bob Mottram 2021-03-12 10:14:58 +00:00
parent b920aac6ab
commit 3b19512e4d
1 changed files with 5 additions and 0 deletions

View File

@ -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,