diff --git a/posts.py b/posts.py index 35c2a85fb..9d2725b3a 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 616ce67a9..b817c0b3a 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: