mirror of https://gitlab.com/bashrc2/epicyon
Switch to activity+json
parent
35dac59e8f
commit
a662ffa2a2
2
posts.py
2
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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue