mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-21 19:51:00 +00:00
Merge pull request #9 from rafaelcaricio/unique-outbox-url-per-actor
Every actor has an unique outbox url
This commit is contained in:
commit
6d2ab527c8
2 changed files with 3 additions and 2 deletions
|
@ -56,7 +56,7 @@ impl Actor {
|
||||||
url: "https://fedi.buzz/assets/favicon48.png".to_string(),
|
url: "https://fedi.buzz/assets/favicon48.png".to_string(),
|
||||||
}),
|
}),
|
||||||
inbox: self.uri(),
|
inbox: self.uri(),
|
||||||
outbox: format!("https://{}/outbox", self.host),
|
outbox: format!("{}/outbox", self.uri()),
|
||||||
public_key: activitypub::ActorPublicKey {
|
public_key: activitypub::ActorPublicKey {
|
||||||
id: self.key_id(),
|
id: self.key_id(),
|
||||||
owner: Some(self.uri()),
|
owner: Some(self.uri()),
|
||||||
|
|
|
@ -350,7 +350,8 @@ async fn main() {
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.route("/tag/:tag", get(get_tag_actor).post(post_tag_relay))
|
.route("/tag/:tag", get(get_tag_actor).post(post_tag_relay))
|
||||||
.route("/instance/:instance", get(get_instance_actor).post(post_instance_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/webfinger", get(webfinger))
|
||||||
.route("/.well-known/nodeinfo", get(nodeinfo))
|
.route("/.well-known/nodeinfo", get(nodeinfo))
|
||||||
.route("/metrics", get(|| async move {
|
.route("/metrics", get(|| async move {
|
||||||
|
|
Loading…
Reference in a new issue