]> Untitled Git - lemmy.git/commitdiff
Fix: Use correctly parseable JSON-LD context (#2299)
authortrwnh <a@trwnh.com>
Mon, 13 Jun 2022 13:26:56 +0000 (08:26 -0500)
committerGitHub <noreply@github.com>
Mon, 13 Jun 2022 13:26:56 +0000 (13:26 +0000)
* Fix: Use correctly parseable JSON-LD context

* Changed: Better ordering for context document

alphabetized properties

* Changed: Use xsd types instead of schema.org types

* Changed: use simple namespacing

crates/apub/assets/lemmy/context.json

index 88f3a65868c481b6a80ac0d6a2b874e79b913bb0..1a0fb07d1f57e855ee2a3fb756498801cd043925 100644 (file)
@@ -1,19 +1,21 @@
 [
   "https://www.w3.org/ns/activitystreams",
+  "https://w3id.org/security/v1",
   {
-    "stickied": "as:stickied",
-    "pt": "https://join-lemmy.org#",
-    "sc": "http://schema.org#",
-    "matrixUserId": {
-      "type": "sc:Text",
-      "id": "as:alsoKnownAs"
-    },
+    "lemmy": "https://join-lemmy.org/ns#",
+    "litepub": "http://litepub.social/ns#",
+    "pt": "https://joinpeertube.org/ns#",
+    "ChatMessage": "litepub:ChatMessage",
+    "commentsEnabled": "pt:commentsEnabled",
     "sensitive": "as:sensitive",
-    "comments_enabled": {
-      "type": "sc:Boolean",
-      "id": "pt:commentsEnabled"
+    "matrixUserId": "lemmy:matrixUserId",
+    "posting_restricted_to_mods": "lemmy:posting_restricted_to_mods",
+    "remove_data": "lemmy:remove_data",
+    "stickied": "lemmy:stickied",
+    "moderators": {
+      "@type": "@id",
+      "@id": "lemmy:moderators"
     },
-    "moderators": "as:moderators"
-  },
-  "https://w3id.org/security/v1"
-]
\ No newline at end of file
+    "expires": "as:endTime"
+  }
+]