1 use activitystreams::{base::AnyBase, context};
2 use lemmy_utils::LemmyError;
6 pub(crate) fn lemmy_context() -> Result<Vec<AnyBase>, LemmyError> {
7 let context_ext = AnyBase::from_arbitrary_json(json!(
9 "sc": "http://schema.org#",
10 "sensitive": "as:sensitive",
11 "stickied": "as:stickied",
12 "pt": "https://join.lemmy.ml#",
15 "id": "pt:commentsEnabled"
17 "moderators": "as:moderators",
20 "id": "as:alsoKnownAs"
24 AnyBase::from(context()),
26 AnyBase::from(Url::parse("https://w3id.org/security/v1")?),