From 7189328f803cc3e90961fe61fc35f7e39725a12d Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 2 Mar 2021 17:12:45 +0100 Subject: [PATCH] Remove category from activitypub context --- crates/apub/src/extensions/context.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, 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]) -- 2.44.1