mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
907f3d8366
commit
b870a69545
10
person.py
10
person.py
|
@ -1302,11 +1302,11 @@ def getActorJson(hostDomain: str, handle: str, http: bool, gnunet: bool,
|
||||||
if not personUrl:
|
if not personUrl:
|
||||||
personUrl = getUserUrl(wfRequest, 0, debug)
|
personUrl = getUserUrl(wfRequest, 0, debug)
|
||||||
if nickname == domain:
|
if nickname == domain:
|
||||||
personUrl = personUrl.replace('/users/', '/actor/')
|
paths = (
|
||||||
personUrl = personUrl.replace('/accounts/', '/actor/')
|
'/users/', '/accounts/', '/channel/', '/profile/', '/u/'
|
||||||
personUrl = personUrl.replace('/channel/', '/actor/')
|
)
|
||||||
personUrl = personUrl.replace('/profile/', '/actor/')
|
for userPath in paths:
|
||||||
personUrl = personUrl.replace('/u/', '/actor/')
|
personUrl = personUrl.replace(userPath, '/actor/')
|
||||||
if not personUrl:
|
if not personUrl:
|
||||||
# try single user instance
|
# try single user instance
|
||||||
personUrl = httpPrefix + '://' + domain + '/' + nickname
|
personUrl = httpPrefix + '://' + domain + '/' + nickname
|
||||||
|
|
Loading…
Reference in New Issue