diff --git a/Cargo.lock b/Cargo.lock index 0384aa3..385b5ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,9 +2,9 @@ # It is not intended for manual editing. [[package]] name = "activitystreams" -version = "0.5.0-alpha.6" +version = "0.5.0-alpha.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9057510df06a864f3a4da22c393373ae13850f001655a102acb4a8ada0895d9d" +checksum = "a9e82b6649331396e8bd17547a3b775ba7f530a30d574d43cf1d373899dafd94" dependencies = [ "activitystreams-derive", "chrono", diff --git a/Cargo.toml b/Cargo.toml index bcef980..69d2c53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ actix = "0.10.0-alpha.2" actix-rt = "1.0.0" actix-web = { version = "3.0.0-alpha.1", features = ["openssl"] } actix-webfinger = { version = "0.3.0-alpha.2" } -activitystreams = "0.5.0-alpha.6" +activitystreams = "0.5.0-alpha.7" base64 = "0.12" bb8-postgres = "0.4.0" dotenv = "0.15.0" diff --git a/src/main.rs b/src/main.rs index d928333..41d3466 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ async fn actor_route(state: web::Data) -> Result let mut application = Application::default(); let mut endpoint = EndpointProperties::default(); - endpoint.set_shared_inbox(format!("https://{}/inbox", "localhost"))?; + endpoint.set_shared_inbox(state.generate_url(UrlKind::Inbox))?; application .object_props