]> Untitled Git - lemmy.git/commitdiff
Fix JSON-LD contexts
authorGrishka <grishka93@gmail.com>
Sun, 21 Mar 2021 01:00:32 +0000 (04:00 +0300)
committerGrishka <grishka93@gmail.com>
Sun, 21 Mar 2021 01:00:32 +0000 (04:00 +0300)
crates/apub/src/extensions/context.rs

index b670e60d84bc5a14d858d8ab6e2fc32a2012b679..b89fdb8f967fb60dafbcf474521e55344b86c206 100644 (file)
@@ -8,10 +8,11 @@ pub(crate) fn lemmy_context() -> Result<Vec<AnyBase>, LemmyError> {
     "sc": "http://schema.org#",
     "sensitive": "as:sensitive",
     "stickied": "as:stickied",
+    "pt": "https://join.lemmy.ml#"
     "comments_enabled": {
-      "kind": "sc:Boolean",
+      "type": "sc:Boolean",
       "id": "pt:commentsEnabled"
     }
   }))?;
-  Ok(vec![AnyBase::from(context()), context_ext])
+  Ok(vec![AnyBase::from(context()), context_ext, "https://w3id.org/security/v1"])
 }