use activitystreams::{base::AnyBase, context}; use lemmy_utils::LemmyError; use serde_json::json; pub(crate) fn lemmy_context() -> Result, LemmyError> { let context_ext = AnyBase::from_arbitrary_json(json!( { "sc": "http://schema.org#", "sensitive": "as:sensitive", "stickied": "as:stickied", "comments_enabled": { "kind": "sc:Boolean", "id": "pt:commentsEnabled" }, "moderators": "as:moderators" }))?; Ok(vec![AnyBase::from(context()), context_ext]) }