From 3f9fb9e67acf4fc46431697000f61f0f2b5a6dd0 Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Wed, 17 Jul 2024 02:34:18 +0200 Subject: [PATCH] fix awa --- src/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.rs b/src/http.rs index 4520840..ec13983 100644 --- a/src/http.rs +++ b/src/http.rs @@ -115,7 +115,7 @@ pub async fn webfinger( let res = resolve("acct:".to_string() + name + "@" + &LYSAND_DOMAIN, true) .await .unwrap(); - user = db_user_from_url(Url::parse(&res.links.get(0).unwrap())?).await?; + user = db_user_from_url(Url::parse(res.links.get(0).clone().unwrap().href.clone().unwrap().as_str())?).await?; } Ok(HttpResponse::Ok().json(build_webfinger_response( query.resource.clone(),