mirror of https://gitlab.com/bashrc2/epicyon
Allow alternate users path
parent
87982e0af4
commit
1297af4aec
9
posts.py
9
posts.py
|
@ -162,10 +162,11 @@ def getUserUrl(wfRequest: {}, sourceId=0) -> str:
|
||||||
continue
|
continue
|
||||||
if link['type'] != 'application/activity+json':
|
if link['type'] != 'application/activity+json':
|
||||||
continue
|
continue
|
||||||
if not hasUsersPath(link['href']):
|
if '/@' not in link['href']:
|
||||||
print('getUserUrl webfinger activity+json ' +
|
if not hasUsersPath(link['href']):
|
||||||
'contains single user instance actor ' +
|
print('getUserUrl webfinger activity+json ' +
|
||||||
str(sourceId) + ' ' + str(link))
|
'contains single user instance actor ' +
|
||||||
|
str(sourceId) + ' ' + str(link))
|
||||||
return link['href']
|
return link['href']
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue