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
|
||||
if link['type'] != 'application/activity+json':
|
||||
continue
|
||||
if not hasUsersPath(link['href']):
|
||||
print('getUserUrl webfinger activity+json ' +
|
||||
'contains single user instance actor ' +
|
||||
str(sourceId) + ' ' + str(link))
|
||||
if '/@' not in link['href']:
|
||||
if not hasUsersPath(link['href']):
|
||||
print('getUserUrl webfinger activity+json ' +
|
||||
'contains single user instance actor ' +
|
||||
str(sourceId) + ' ' + str(link))
|
||||
return link['href']
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue