Switch to activity+json

master
Bob Mottram 2019-09-01 12:52:46 +01:00
parent 35dac59e8f
commit a662ffa2a2
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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: