Obtain nickname

This commit is contained in:
bashrc committed 2019-08-04 22:25:19 +01:00
1 parent 6ea8ac7835
commit 54ebf29e45
2 files changed
+2 -1

No files matched your search

+1
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:
+1 -1
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: