Merge pull request #9 from rafaelcaricio/unique-outbox-url-per-actor

Every actor has an unique outbox url
This commit is contained in:
Astro 2023-08-08 10:34:25 +02:00 committed by GitHub
commit 6d2ab527c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {