]> Untitled Git - lemmy.git/commitdiff
Remove category from activitypub context
authorFelix Ableitner <me@nutomic.com>
Tue, 2 Mar 2021 16:12:45 +0000 (17:12 +0100)
committerFelix Ableitner <me@nutomic.com>
Tue, 2 Mar 2021 16:12:45 +0000 (17:12 +0100)
crates/apub/src/extensions/context.rs

index fe52ab95d4376f0643c94e9013e3b86e895a2ca6..b670e60d84bc5a14d858d8ab6e2fc32a2012b679 100644 (file)
@@ -6,12 +6,11 @@ pub(crate) fn lemmy_context() -> Result<Vec<AnyBase>, LemmyError> {
   let context_ext = AnyBase::from_arbitrary_json(json!(
   {
     "sc": "http://schema.org#",
-    "category": "sc:category",
     "sensitive": "as:sensitive",
     "stickied": "as:stickied",
     "comments_enabled": {
-    "kind": "sc:Boolean",
-    "id": "pt:commentsEnabled"
+      "kind": "sc:Boolean",
+      "id": "pt:commentsEnabled"
     }
   }))?;
   Ok(vec![AnyBase::from(context()), context_ext])