Obtain nickname

master
Bob Mottram 2019-08-04 22:25:19 +01:00
parent 6ea8ac7835
commit 54ebf29e45
2 changed files with 2 additions and 1 deletions

View File

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

View File

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