From: Felix Ableitner <me@nutomic.com>
Date: Tue, 2 Mar 2021 16:12:45 +0000 (+0100)
Subject: Remove category from activitypub context
X-Git-Url: http://these/git/%7Bthis.getImageSrc%28%29%7D?a=commitdiff_plain;h=7189328f803cc3e90961fe61fc35f7e39725a12d;p=lemmy.git

Remove category from activitypub context
---

diff --git a/crates/apub/src/extensions/context.rs b/crates/apub/src/extensions/context.rs
index fe52ab95..b670e60d 100644
--- a/crates/apub/src/extensions/context.rs
+++ b/crates/apub/src/extensions/context.rs
@@ -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])