X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FJsonLD.php;h=beb01f0cc1106f54683ed1454e15e9a8f1d8b111;hb=0a45bdd3b71ec0f8744abb3830858a91a4bca146;hp=0a4d5a0b55bf40808e891f81a1d832e0377ca3c1;hpb=450c75300476942619bc350f4e80a5f658ffb24f;p=friendica.git diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index 0a4d5a0b55..beb01f0cc1 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -55,6 +55,12 @@ class JsonLD case 'https://funkwhale.audio/ns': $url = DI::basePath() . '/static/funkwhale.audio.jsonld'; break; + case 'http://schema.org': + $url = DI::basePath() . '/static/schema.jsonld'; + break; + case 'http://joinmastodon.org/ns': + $url = DI::basePath() . '/static/joinmastodon.jsonld'; + break; default: switch (parse_url($url, PHP_URL_PATH)) { case '/schemas/litepub-0.1.jsonld'; @@ -177,12 +183,6 @@ class JsonLD if (!in_array('https://w3id.org/security/v1', $json['@context'])) { $json['@context'][] = 'https://w3id.org/security/v1'; } - - // Issue 12419: Workaround for GoToSocial - $pos = array_search('http://joinmastodon.org/ns', $json['@context']); - if (is_int($pos)) { - $json['@context'][$pos] = ['toot' => 'http://joinmastodon.org/ns#']; - } } // Bookwyrm transmits "id" fields with "null", which isn't allowed.