Try single user instance during search

main2
Bob Mottram 2019-10-21 10:57:42 +01:00
parent 38e954af17
commit fac6713185
1 changed files with 3 additions and 3 deletions

View File

@ -3254,9 +3254,9 @@ def htmlProfileAfterSearch(translate: {}, \
if not personUrl:
personUrl = getUserUrl(wf)
if not personUrl:
if debug:
print('DEBUG: Webfinger did not return an actor url')
return None
# try single user instance
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
personUrl=httpPrefix+'://'+searchDomainFull
profileJson = getJson(session,personUrl,asHeader,None,projectVersion,httpPrefix,domain)
if not profileJson:
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}