]> Untitled Git - lemmy.git/commitdiff
Make previous commit compile
authorFelix Ableitner <me@nutomic.com>
Mon, 22 Mar 2021 12:11:32 +0000 (13:11 +0100)
committerFelix Ableitner <me@nutomic.com>
Mon, 22 Mar 2021 12:11:32 +0000 (13:11 +0100)
crates/apub/src/extensions/context.rs

index e20141edbb3f6174f4071d3a834bbf16120cbe7e..bfae2935b2bbcb574e5c7f1e06033733ae138260 100644 (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")?),
+  ])
 }