From 54ebf29e4576072a7002621aba20328d1c20fe18 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 4 Aug 2019 22:25:19 +0100 Subject: [PATCH] Obtain nickname --- daemon.py | 1 + follow.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 6d8ab9ea..b8a917ad 100644 --- a/daemon.py +++ b/daemon.py @@ -1119,6 +1119,7 @@ class PubServer(BaseHTTPRequestHandler): return else: if self.server.debug: + nickname=self.path.replace('/users/','').replace('/inbox','') print('DEBUG: '+nickname+ \ ' was not authorized to access '+self.path) if self.server.debug: diff --git a/follow.py b/follow.py index d6fb3636..36929869 100644 --- a/follow.py +++ b/follow.py @@ -381,7 +381,7 @@ def receiveFollowRequest(session,baseDir: str,httpPrefix: str, \ if debug: print('DEBUG: follow request does not contain a nickname for the account followed') return False - handleToFollow=nicknameToFollow.lower()+'@'+domainToFollow.lower() + handleToFollow=nicknameToFollow+'@'+domainToFollow if domainToFollow==domain: if not os.path.isdir(baseDir+'/accounts/'+handleToFollow): if debug: