Check users path

merge-requests/30/head
Bob Mottram 2022-08-27 21:55:16 +01:00
parent a04ff0e21c
commit 30dfdf8286
1 changed files with 1 additions and 1 deletions

View File

@ -802,7 +802,7 @@ class PubServer(BaseHTTPRequestHandler):
calling_domain: str) -> str: calling_domain: str) -> str:
"""Returns the public key for an account """Returns the public key for an account
""" """
if not has_users_path(path): if '/users/' not in path:
return None return None
nickname = path.split('/users/')[1] nickname = path.split('/users/')[1]
if '#' not in nickname: if '#' not in nickname: