From 07ec81e202addd8892ecb5c31f9d83c515f760a8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 21 Oct 2019 17:20:33 +0100 Subject: [PATCH] Additional attempt to get actor --- posts.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 8b60cb23..05559b93 100644 --- a/posts.py +++ b/posts.py @@ -179,7 +179,11 @@ def getPersonBox(baseDir: str,session,wfRequest: {},personCache: {}, \ personJson = getJson(session,personUrl,asHeader,None, \ projectVersion,httpPrefix,domain) if not personJson: - return None,None,None,None,None,None,None,None + asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'} + personJson = getJson(session,personUrl,asHeader,None, \ + projectVersion,httpPrefix,domain) + if not personJson: + return None,None,None,None,None,None,None,None boxJson=None if not personJson.get(boxName): if personJson.get('endpoints'):