mirror of
https://github.com/friendica/friendica
synced 2024-11-12 22:22:54 +00:00
Added another context
This commit is contained in:
parent
f59e11281c
commit
12d6080a48
2 changed files with 37 additions and 4 deletions
|
@ -46,12 +46,15 @@ class JsonLD
|
||||||
case 'https://w3id.org/security/v1':
|
case 'https://w3id.org/security/v1':
|
||||||
$url = DI::basePath() . '/static/security-v1.jsonld';
|
$url = DI::basePath() . '/static/security-v1.jsonld';
|
||||||
break;
|
break;
|
||||||
case 'https://w3id.org/identity/v1':
|
|
||||||
$url = DI::basePath() . '/static/identity-v1.jsonld';
|
|
||||||
break;
|
|
||||||
case 'https://w3id.org/security/data-integrity/v1':
|
case 'https://w3id.org/security/data-integrity/v1':
|
||||||
$url = DI::basePath() . '/static/security-data-integrity-v1.jsonld';
|
$url = DI::basePath() . '/static/security-data-integrity-v1.jsonld';
|
||||||
break;
|
break;
|
||||||
|
case 'https://w3id.org/security/multikey/v1':
|
||||||
|
$url = DI::basePath() . '/static/security-multikey-v1.jsonld';
|
||||||
|
break;
|
||||||
|
case 'https://w3id.org/identity/v1':
|
||||||
|
$url = DI::basePath() . '/static/identity-v1.jsonld';
|
||||||
|
break;
|
||||||
case 'https://www.w3.org/ns/activitystreams':
|
case 'https://www.w3.org/ns/activitystreams':
|
||||||
$url = DI::basePath() . '/static/activitystreams.jsonld';
|
$url = DI::basePath() . '/static/activitystreams.jsonld';
|
||||||
break;
|
break;
|
||||||
|
@ -98,7 +101,7 @@ class JsonLD
|
||||||
|
|
||||||
$result = DI::cache()->get('documentLoader:' . $url);
|
$result = DI::cache()->get('documentLoader:' . $url);
|
||||||
if (!is_null($result)) {
|
if (!is_null($result)) {
|
||||||
return $result;
|
//return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = jsonld_default_document_loader($url);
|
$data = jsonld_default_document_loader($url);
|
||||||
|
|
30
static/security-multikey-v1.jsonld
Normal file
30
static/security-multikey-v1.jsonld
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
"@context": {
|
||||||
|
"id": "@id",
|
||||||
|
"type": "@type",
|
||||||
|
"Multikey": {
|
||||||
|
"@id": "https://w3id.org/security#Multikey",
|
||||||
|
"@context": {
|
||||||
|
"@protected": true,
|
||||||
|
"id": "@id",
|
||||||
|
"type": "@type",
|
||||||
|
"controller": {
|
||||||
|
"@id": "https://w3id.org/security#controller",
|
||||||
|
"@type": "@id"
|
||||||
|
},
|
||||||
|
"revoked": {
|
||||||
|
"@id": "https://w3id.org/security#revoked",
|
||||||
|
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
||||||
|
},
|
||||||
|
"publicKeyMultibase": {
|
||||||
|
"@id": "https://w3id.org/security#publicKeyMultibase",
|
||||||
|
"@type": "https://w3id.org/security#multibase"
|
||||||
|
},
|
||||||
|
"secretKeyMultibase": {
|
||||||
|
"@id": "https://w3id.org/security#secretKeyMultibase",
|
||||||
|
"@type": "https://w3id.org/security#multibase"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue