diff --git a/src/http.rs b/src/http.rs index 2fc8fd4..b359161 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.subject)?).await?; + user = db_user_from_url(Url::parse(&res.aliases.get(0).unwrap())?).await?; } Ok(HttpResponse::Ok().json(build_webfinger_response( query.resource.clone(),