From a662ffa2a2a3938e130eefced2414031e0a2755c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Sep 2019 12:52:46 +0100 Subject: [PATCH] Switch to activity+json --- posts.py | 2 +- webinterface.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 35c2a85f..9d2725b3 100644 --- a/posts.py +++ b/posts.py @@ -143,7 +143,7 @@ def parseUserFeed(session,feedUrl: str,asHeader: {}, \ def getPersonBox(baseDir: str,session,wfRequest: {},personCache: {}, \ projectVersion: str,httpPrefix: str,domain: str, \ boxName='inbox') -> (str,str,str,str,str,str,str,str): - asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'} + asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'} personUrl = getUserUrl(wfRequest) if not personUrl: return None,None,None,None,None,None,None,None diff --git a/webinterface.py b/webinterface.py index 616ce67a..b817c0b3 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2215,7 +2215,7 @@ def htmlProfileAfterSearch(baseDir: str,path: str,httpPrefix: str, \ if debug: print('DEBUG: Unable to webfinger '+searchNickname+'@'+searchDomainFull) return None - asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'} + asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'} personUrl = getUserUrl(wf) profileJson = getJson(session,personUrl,asHeader,None,projectVersion,httpPrefix,domain) if not profileJson: