mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
awa
This commit is contained in:
parent
d99d47a9d0
commit
de402bf3c7
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue