Make previous commit compile

This commit is contained in:
Felix Ableitner 2021-03-22 13:11:32 +01:00
parent 6b5354fb11
commit 459b95bc7e

View File

@ -1,6 +1,7 @@
use activitystreams::{base::AnyBase, context};
use lemmy_utils::LemmyError;
use serde_json::json;
use url::Url;
pub(crate) fn lemmy_context() -> Result<Vec<AnyBase>, LemmyError> {
let context_ext = AnyBase::from_arbitrary_json(json!(
@ -14,5 +15,9 @@ pub(crate) fn lemmy_context() -> Result<Vec<AnyBase>, LemmyError> {
"id": "pt:commentsEnabled"
}
}))?;
Ok(vec![AnyBase::from(context()), context_ext, "https://w3id.org/security/v1"])
Ok(vec![
AnyBase::from(context()),
context_ext,
AnyBase::from(Url::parse("https://w3id.org/security/v1")?),
])
}