mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-21 19:51:00 +00:00
Every actor has an unique outbox url
This commit is contained in:
parent
c7f0335998
commit
23bc680586
2 changed files with 3 additions and 2 deletions
|
@ -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()),
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue