1 use activitystreams::{base::AnyBase, context};
2 use lemmy_utils::LemmyError;
5 pub(crate) fn lemmy_context() -> Result<Vec<AnyBase>, LemmyError> {
6 let context_ext = AnyBase::from_arbitrary_json(json!(
8 "sc": "http://schema.org#",
9 "category": "sc:category",
10 "sensitive": "as:sensitive",
11 "stickied": "as:stickied",
14 "id": "pt:commentsEnabled"
17 Ok(vec![AnyBase::from(context()), context_ext])