From fac6713185ab424de0c0dae2a50023fe0428c103 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 21 Oct 2019 10:57:42 +0100 Subject: [PATCH] Try single user instance during search --- webinterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webinterface.py b/webinterface.py index eddefa33..30da0425 100644 --- a/webinterface.py +++ b/webinterface.py @@ -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"'}