From: Grishka Date: Sun, 21 Mar 2021 01:00:32 +0000 (+0300) Subject: Fix JSON-LD contexts X-Git-Url: http://these/git/readmes/%7B%60%24%7BarchiveTodayUrl%7D/%24%7BgetStaticDir%28%29%7D/js/static/git-favicon.png?a=commitdiff_plain;h=c14a50545616460e28b701aa33912df9f515726e;p=lemmy.git Fix JSON-LD contexts --- diff --git a/crates/apub/src/extensions/context.rs b/crates/apub/src/extensions/context.rs index b670e60d..b89fdb8f 100644 --- a/crates/apub/src/extensions/context.rs +++ b/crates/apub/src/extensions/context.rs @@ -8,10 +8,11 @@ pub(crate) fn lemmy_context() -> Result, 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"]) }