fix: well-known nodeinfo base url
This commit is contained in:
parent
8b88d24250
commit
2cb6cfd2f1
1 changed files with 2 additions and 2 deletions
|
@ -20,11 +20,11 @@ pub async fn nodeinfo_discovery(State(ctx): State<Context>) -> Json<NodeInfoDisc
|
|||
links: vec![
|
||||
NodeInfoDiscoveryRel {
|
||||
rel: "http://nodeinfo.diaspora.software/ns/schema/2.0".into(),
|
||||
href: format!("{}/nodeinfo/2.0.json", ctx.domain()),
|
||||
href: crate::url!(ctx, "/nodeinfo/2.0.json"),
|
||||
},
|
||||
NodeInfoDiscoveryRel {
|
||||
rel: "http://nodeinfo.diaspora.software/ns/schema/2.1".into(),
|
||||
href: format!("{}/nodeinfo/2.1.json", ctx.domain()),
|
||||
href: crate::url!(ctx, "/nodeinfo/2.1.json"),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue