]> Untitled Git - lemmy.git/blobdiff - src/routes/webfinger.rs
Use Url type for ap_id fields in database (fixes #1364)
[lemmy.git] / src / routes / webfinger.rs
index 0e4d7f948629373ed5821e82e526a62f4eb3fd84..4059e0f893d0491e774c22fa4d76e9f0c87df70b 100644 (file)
@@ -70,18 +70,18 @@ async fn get_webfinger_response(
 
   let json = WebFingerResponse {
     subject: info.resource.to_owned(),
-    aliases: vec![url.to_owned()],
+    aliases: vec![url.to_owned().into()],
     links: vec![
       WebFingerLink {
         rel: Some("http://webfinger.net/rel/profile-page".to_string()),
         type_: Some("text/html".to_string()),
-        href: Some(url.to_owned()),
+        href: Some(url.to_owned().into()),
         template: None,
       },
       WebFingerLink {
         rel: Some("self".to_string()),
         type_: Some("application/activity+json".to_string()),
-        href: Some(url),
+        href: Some(url.into()),
         template: None,
       }, // TODO: this also needs to return the subscribe link once that's implemented
          //{