diff --git a/src/actor.rs b/src/actor.rs index edbe21c..843e4ee 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -56,7 +56,7 @@ impl Actor { url: "https://fedi.buzz/assets/favicon48.png".to_string(), }), inbox: self.uri(), - outbox: format!("https://{}/outbox", self.host), + outbox: format!("{}/outbox", self.uri()), public_key: activitypub::ActorPublicKey { id: self.key_id(), owner: Some(self.uri()), diff --git a/src/main.rs b/src/main.rs index b133a37..572952d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -350,7 +350,8 @@ async fn main() { let app = Router::new() .route("/tag/:tag", get(get_tag_actor).post(post_tag_relay)) .route("/instance/:instance", get(get_instance_actor).post(post_instance_relay)) - .route("/outbox", get(outbox)) + .route("/tag/:tag/outbox", get(outbox)) + .route("/instance/:instance/outbox", get(outbox)) .route("/.well-known/webfinger", get(webfinger)) .route("/.well-known/nodeinfo", get(nodeinfo)) .route("/metrics", get(|| async move {