main: add "links" to nodeinfo

This commit is contained in:
Astro 2023-05-26 21:57:07 +02:00
parent 56b174bd58
commit 5798e76d6d

View file

@ -275,7 +275,13 @@ async fn nodeinfo(axum::extract::State(state): axum::extract::State<State>) -> R
}, },
"metadata": { "metadata": {
"rust_version": env!("CARGO_PKG_RUST_VERSION"), "rust_version": env!("CARGO_PKG_RUST_VERSION"),
} },
"links": vec![
json!({
"rel": "http://nodeinfo.diaspora.software/ns/schema/2.1",
"href": format!("https://{}/.well-known/nodeinfo", state.hostname),
}),
],
})).into_response() })).into_response()
} }