From: Felix Ableitner Date: Mon, 22 Mar 2021 12:11:32 +0000 (+0100) Subject: Make previous commit compile X-Git-Url: http://these/git/readmes/%24%7B%60data:application/static/%7B?a=commitdiff_plain;h=459b95bc7ee58282275f341e14c19f562ada42ac;p=lemmy.git Make previous commit compile --- diff --git a/crates/apub/src/extensions/context.rs b/crates/apub/src/extensions/context.rs index e20141ed..bfae2935 100644 --- a/crates/apub/src/extensions/context.rs +++ b/crates/apub/src/extensions/context.rs @@ -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, LemmyError> { let context_ext = AnyBase::from_arbitrary_json(json!( @@ -14,5 +15,9 @@ pub(crate) fn lemmy_context() -> Result, 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")?), + ]) }