fix: well-known nodeinfo base url

This commit is contained in:
əlemi 2024-04-23 05:29:26 +02:00
parent 8b88d24250
commit 2cb6cfd2f1
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -20,11 +20,11 @@ pub async fn nodeinfo_discovery(State(ctx): State<Context>) -> Json<NodeInfoDisc
links: vec![ links: vec![
NodeInfoDiscoveryRel { NodeInfoDiscoveryRel {
rel: "http://nodeinfo.diaspora.software/ns/schema/2.0".into(), 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 { NodeInfoDiscoveryRel {
rel: "http://nodeinfo.diaspora.software/ns/schema/2.1".into(), 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"),
}, },
], ],
}) })