]> git.mxchange.org Git - friendica.git/commitdiff
Issue 14145: Fix communication with Hubzilla
authorMichael <heluecht@pirati.ca>
Mon, 21 Oct 2024 06:08:28 +0000 (06:08 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 21 Oct 2024 06:08:28 +0000 (06:08 +0000)
src/Util/JsonLD.php
static/socialweb-webfinger.jsonld [new file with mode: 0644]

index e18684de60598af9ca0cc50d6536570819707824..1ee5c0920e0e27cb9b9d508c6aac75d85eb9595f 100644 (file)
@@ -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 (file)
index 0000000..7c0fd9e
--- /dev/null
@@ -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