forked from indymedia/epicyon
Obtain nickname
parent
6ea8ac7835
commit
54ebf29e45
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue