diff --git a/Cargo.lock b/Cargo.lock index e273e19..8da0d9c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1599,8 +1599,9 @@ dependencies = [ [[package]] name = "webfinger-rs" -version = "0.0.11" -source = "git+https://github.com/joshka/webfinger-rs.git?rev=0572213ad3f8eae9f3c79754e1f17d880ed1f580#0572213ad3f8eae9f3c79754e1f17d880ed1f580" +version = "0.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6f7d55f92d53d3a5211d7a0a594acf1acc763618b56b88ea01e7bc2fe791343" dependencies = [ "async-convert", "axum", diff --git a/Cargo.toml b/Cargo.toml index c0aa6b7..f33e172 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,4 +14,4 @@ sha2 = "0.10.8" tokio = { version = "1.44.2", features = ["full"] } tower-layer = "0.3.3" tower-service = "0.3.3" -webfinger-rs = { git = "https://github.com/joshka/webfinger-rs.git", rev = "0572213ad3f8eae9f3c79754e1f17d880ed1f580", features = ["axum"] } +webfinger-rs = { version = "0.0.13", features = ["axum"] } diff --git a/src/users.rs b/src/users.rs index b139190..fe66832 100644 --- a/src/users.rs +++ b/src/users.rs @@ -5,7 +5,7 @@ use axum::{ use log::debug; use serde::Serialize; -use crate::USER; +use crate::{HOST, USER}; #[derive(Serialize)] pub struct UsersResponse { @@ -24,7 +24,7 @@ pub async fn users_get(Path(user): Path) -> UsersResponse { context: "https://www.w3.org/ns/activitystreams".to_string(), r#type: "Person".to_string(), name: "Sally Smith".to_string(), - id: "https://testhost.com/users/test".to_string(), + id: format!("https://{HOST}/users/{USER}"), } }