mirror of https://gitlab.com/bashrc2/epicyon
parent
ca96504528
commit
7ef1ba2196
2
cache.py
2
cache.py
|
@ -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()
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue