diff --git a/src/main.rs b/src/main.rs index 5f9a00d..b805e34 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,6 +50,7 @@ async fn actor_route(state: web::Data) -> Result .set_followers(state.generate_url(UrlKind::Followers))? .set_following(state.generate_url(UrlKind::Following))? .set_inbox(state.generate_url(UrlKind::Inbox))? + .set_outbox(state.generate_url(UrlKind::Outbox))? .set_endpoints(endpoint)?; let public_key = PublicKey { diff --git a/src/state.rs b/src/state.rs index ec18dfa..edf4918 100644 --- a/src/state.rs +++ b/src/state.rs @@ -39,6 +39,7 @@ pub enum UrlKind { Following, Inbox, MainKey, + Outbox, } #[derive(Clone, Debug, thiserror::Error)] @@ -90,6 +91,7 @@ impl Settings { UrlKind::Following => format!("{}://{}/following", scheme, self.hostname), UrlKind::Inbox => format!("{}://{}/inbox", scheme, self.hostname), UrlKind::MainKey => format!("{}://{}/actor#main-key", scheme, self.hostname), + UrlKind::Outbox => format!("{}://{}/outbox", scheme, self.hostname), } }