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