From de402bf3c799e57a260defcfb0b9d148619344be Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Wed, 17 Jul 2024 02:25:33 +0200 Subject: [PATCH] awa --- src/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),