Allow alternate users path

main
Bob Mottram 2021-01-24 22:20:23 +00:00
parent 87982e0af4
commit 1297af4aec
1 changed files with 5 additions and 4 deletions

View File

@ -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