From 3b19512e4db81b5612ba1f070546682d1665ccc3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 12 Mar 2021 10:14:58 +0000 Subject: [PATCH] Deny using actor rather than handle --- daemon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon.py b/daemon.py index d007ec902..394fe009e 100644 --- a/daemon.py +++ b/daemon.py @@ -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,