mirror of https://gitlab.com/bashrc2/epicyon
Detect users path
parent
485b537fe7
commit
9deebab1a9
12
inbox.py
12
inbox.py
|
@ -240,10 +240,14 @@ def getPersonPubKey(baseDir: str, session, personUrl: str,
|
||||||
if not personUrl:
|
if not personUrl:
|
||||||
return None
|
return None
|
||||||
personUrl = personUrl.replace('#main-key', '')
|
personUrl = personUrl.replace('#main-key', '')
|
||||||
if personUrl.endswith('/users/inbox'):
|
usersPaths = getUserPaths()
|
||||||
if debug:
|
for possibleUsersPath in usersPaths:
|
||||||
print('DEBUG: Obtaining public key for shared inbox')
|
if personUrl.endswith(possibleUsersPath + 'inbox'):
|
||||||
personUrl = personUrl.replace('/users/inbox', '/inbox')
|
if debug:
|
||||||
|
print('DEBUG: Obtaining public key for shared inbox')
|
||||||
|
personUrl = \
|
||||||
|
personUrl.replace(possibleUsersPath + 'inbox', '/inbox')
|
||||||
|
break
|
||||||
personJson = \
|
personJson = \
|
||||||
getPersonFromCache(baseDir, personUrl, personCache, True)
|
getPersonFromCache(baseDir, personUrl, personCache, True)
|
||||||
if not personJson:
|
if not personJson:
|
||||||
|
|
Loading…
Reference in New Issue