forked from indymedia/epicyon
Use activity instead of ld
parent
eb2f67bba1
commit
c8142aa022
2
inbox.py
2
inbox.py
|
@ -99,7 +99,7 @@ def getPersonPubKey(baseDir: str,session,personUrl: str, \
|
|||
if not personJson:
|
||||
if debug:
|
||||
print('DEBUG: Obtaining public key for '+personUrl)
|
||||
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
personJson = getJson(session,personUrl,asHeader,None,projectVersion,httpPrefix,domain)
|
||||
if not personJson:
|
||||
return None
|
||||
|
|
2
posts.py
2
posts.py
|
@ -209,7 +209,7 @@ def getPosts(session,outboxUrl: str,maxPosts: int, \
|
|||
if not outboxUrl:
|
||||
return personPosts
|
||||
|
||||
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
if raw:
|
||||
result = []
|
||||
i = 0
|
||||
|
|
|
@ -2210,14 +2210,14 @@ def htmlProfileAfterSearch(baseDir: str,path: str,httpPrefix: str, \
|
|||
profileStr=''
|
||||
with open(baseDir+'/epicyon-profile.css', 'r') as cssFile:
|
||||
wf = webfingerHandle(session,searchNickname+'@'+searchDomainFull,httpPrefix,wfRequest, \
|
||||
None,projectVersion)
|
||||
domain,projectVersion)
|
||||
if not wf:
|
||||
if debug:
|
||||
print('DEBUG: Unable to webfinger '+searchNickname+'@'+searchDomainFull)
|
||||
return None
|
||||
asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
personUrl = getUserUrl(wf)
|
||||
profileJson = getJson(session,personUrl,asHeader,None,projectVersion,httpPrefix,None)
|
||||
profileJson = getJson(session,personUrl,asHeader,None,projectVersion,httpPrefix,domain)
|
||||
if not profileJson:
|
||||
if debug:
|
||||
print('DEBUG: No actor returned from '+personUrl)
|
||||
|
|
Loading…
Reference in New Issue