From 58cd216eb7c165551ad9e2f7904c869584d6e1b9 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 21 Oct 2024 06:08:28 +0000 Subject: [PATCH] Issue 14145: Fix communication with Hubzilla --- src/Util/JsonLD.php | 3 +++ static/socialweb-webfinger.jsonld | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 static/socialweb-webfinger.jsonld diff --git a/src/Util/JsonLD.php b/src/Util/JsonLD.php index e18684de60..1ee5c0920e 100644 --- a/src/Util/JsonLD.php +++ b/src/Util/JsonLD.php @@ -58,6 +58,9 @@ class JsonLD case 'http://joinmastodon.org/ns': $url = DI::basePath() . '/static/joinmastodon.jsonld'; break; + case 'https://purl.archive.org/socialweb/webfinger': + $url = DI::basePath() . '/static/socialweb-webfinger.jsonld'; + break; default: switch (parse_url($url, PHP_URL_PATH)) { case '/schemas/litepub-0.1.jsonld'; diff --git a/static/socialweb-webfinger.jsonld b/static/socialweb-webfinger.jsonld new file mode 100644 index 0000000000..7c0fd9e742 --- /dev/null +++ b/static/socialweb-webfinger.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "wf": "https://purl.archive.org/socialweb/webfinger#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "webfinger": { + "@id": "wf:webfinger", + "@type": "xsd:string" + } + } +} \ No newline at end of file