This commit is contained in:
aprilthepink 2024-07-17 02:34:18 +02:00
parent 6dc2597ad9
commit 3f9fb9e67a

View file

@ -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(),