Every actor has an unique outbox url

This commit is contained in:
Rafael Caricio 2023-08-07 22:12:56 +02:00
parent c7f0335998
commit 23bc680586
Signed by: rafaelcaricio
GPG key ID: 3C86DBCE8E93C947
2 changed files with 3 additions and 2 deletions

View file

@ -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()),

View file

@ -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 {