mirror of https://gitlab.com/bashrc2/epicyon
Context headers
parent
325672208f
commit
a897ebe114
|
@ -91,6 +91,7 @@ def capabilitiesRequest(baseDir: str,httpPrefix: str,domain: str, \
|
||||||
# This could also be added to a follow activity
|
# This could also be added to a follow activity
|
||||||
ocapId=createPassword(32)
|
ocapId=createPassword(32)
|
||||||
ocapRequest = {
|
ocapRequest = {
|
||||||
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
"id": httpPrefix+"://"+requestedDomain+"/caps/request/"+ocapId,
|
"id": httpPrefix+"://"+requestedDomain+"/caps/request/"+ocapId,
|
||||||
"type": "Request",
|
"type": "Request",
|
||||||
"capability": requestedCaps,
|
"capability": requestedCaps,
|
||||||
|
@ -132,6 +133,7 @@ def capabilitiesAccept(baseDir: str,httpPrefix: str, \
|
||||||
else:
|
else:
|
||||||
ocapId=acceptedActorNickname+'@'+acceptedActorDomain+'#'+createPassword(32)
|
ocapId=acceptedActorNickname+'@'+acceptedActorDomain+'#'+createPassword(32)
|
||||||
ocapAccept = {
|
ocapAccept = {
|
||||||
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
"id": httpPrefix+"://"+fullDomain+"/caps/"+ocapId,
|
"id": httpPrefix+"://"+fullDomain+"/caps/"+ocapId,
|
||||||
"type": "Capability",
|
"type": "Capability",
|
||||||
"capability": acceptedCaps,
|
"capability": acceptedCaps,
|
||||||
|
@ -185,6 +187,7 @@ def capabilitiesUpdate(baseDir: str,httpPrefix: str, \
|
||||||
|
|
||||||
# create an update activity
|
# create an update activity
|
||||||
ocapUpdate = {
|
ocapUpdate = {
|
||||||
|
"@context": "https://www.w3.org/ns/activitystreams",
|
||||||
'type': 'Update',
|
'type': 'Update',
|
||||||
'actor': httpPrefix+'://'+fullDomain+'/users/'+nickname,
|
'actor': httpPrefix+'://'+fullDomain+'/users/'+nickname,
|
||||||
'to': [updateActor],
|
'to': [updateActor],
|
||||||
|
|
Loading…
Reference in New Issue