Bob Mottram 2022-08-27 20:15:58 +01:00
parent ca96504528
commit 7ef1ba2196
2 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,8 @@ def get_person_pub_key(base_dir: str, session, person_url: str,
return None
if '#/publicKey' in person_url:
person_url = person_url.replace('#/publicKey', '')
elif '/main-key' in person_url:
person_url = person_url.replace('/main-key', '')
else:
person_url = person_url.replace('#main-key', '')
users_paths = get_user_paths()

View File

@ -923,6 +923,8 @@ def person_lookup(domain: str, path: str, base_dir: str) -> {}:
"""
if path.endswith('#/publicKey'):
path = path.replace('#/publicKey', '')
elif path.endswith('/main-key'):
path = path.replace('/main-key', '')
elif path.endswith('#main-key'):
path = path.replace('#main-key', '')
# is this a shared inbox lookup?