fix: renamed methods
This commit is contained in:
parent
379b4daa84
commit
5d501a3018
1 changed files with 3 additions and 3 deletions
|
@ -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.base()),
|
href: format!("{}/nodeinfo/2.0.json", ctx.domain()),
|
||||||
},
|
},
|
||||||
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.base()),
|
href: format!("{}/nodeinfo/2.1.json", ctx.domain()),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
@ -141,7 +141,7 @@ pub async fn host_meta(State(ctx): State<Context>) -> Response {
|
||||||
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
|
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
|
||||||
<Link type="application/xrd+xml" template="{}{}/.well-known/webfinger?resource={{uri}}" rel="lrdd" />
|
<Link type="application/xrd+xml" template="{}{}/.well-known/webfinger?resource={{uri}}" rel="lrdd" />
|
||||||
</XRD>"#,
|
</XRD>"#,
|
||||||
ctx.protocol(), ctx.base())
|
ctx.protocol(), ctx.domain())
|
||||||
).into_response()
|
).into_response()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue