merge-requests/30/head
Bob Mottram 2021-07-29 23:27:54 +01:00
parent c9fbc82701
commit 78d37b16ab
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,7 @@ def getPersonBox(baseDir: str, session, wfRequest: {},
# get the actor / personUrl
if not wfRequest.get('errors'):
# get the actor url from webfinger links
personUrl = getUserUrl(wfRequest, sourceId, debug)
else:
if nickname == 'dev':
@ -277,6 +278,7 @@ def getPersonBox(baseDir: str, session, wfRequest: {},
'Accept': 'application/ld+json; profile="' + profileStr + '"'
}
else:
# the final fallback is a mastodon style url
personUrl = httpPrefix + '://' + domain + '/users/' + nickname
if not personUrl:
return None, None, None, None, None, None, None