forked from indymedia/epicyon
Obtain nickname
parent
6ea8ac7835
commit
54ebf29e45
|
@ -1119,6 +1119,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
|
nickname=self.path.replace('/users/','').replace('/inbox','')
|
||||||
print('DEBUG: '+nickname+ \
|
print('DEBUG: '+nickname+ \
|
||||||
' was not authorized to access '+self.path)
|
' was not authorized to access '+self.path)
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
|
|
|
@ -381,7 +381,7 @@ def receiveFollowRequest(session,baseDir: str,httpPrefix: str, \
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: follow request does not contain a nickname for the account followed')
|
print('DEBUG: follow request does not contain a nickname for the account followed')
|
||||||
return False
|
return False
|
||||||
handleToFollow=nicknameToFollow.lower()+'@'+domainToFollow.lower()
|
handleToFollow=nicknameToFollow+'@'+domainToFollow
|
||||||
if domainToFollow==domain:
|
if domainToFollow==domain:
|
||||||
if not os.path.isdir(baseDir+'/accounts/'+handleToFollow):
|
if not os.path.isdir(baseDir+'/accounts/'+handleToFollow):
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue