From 459b95bc7ee58282275f341e14c19f562ada42ac Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 22 Mar 2021 13:11:32 +0100 Subject: [PATCH] Make previous commit compile --- crates/apub/src/extensions/context.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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")?), + ]) } -- 2.44.1