pre-format version strings
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
7638bbc49c
commit
3a51e18ce6
7 changed files with 32 additions and 32 deletions
|
@ -145,7 +145,7 @@ pub(crate) async fn syncv3_client_server_json() -> Result<impl IntoResponse> {
|
|||
|
||||
Ok(Json(serde_json::json!({
|
||||
"server": server_url,
|
||||
"version": conduit::version::conduwuit(),
|
||||
"version": conduit::version(),
|
||||
})))
|
||||
}
|
||||
|
||||
|
@ -155,8 +155,8 @@ pub(crate) async fn syncv3_client_server_json() -> Result<impl IntoResponse> {
|
|||
/// `/_matrix/federation/v1/version`
|
||||
pub(crate) async fn conduwuit_server_version() -> Result<impl IntoResponse> {
|
||||
Ok(Json(serde_json::json!({
|
||||
"name": "conduwuit",
|
||||
"version": conduit::version::conduwuit(),
|
||||
"name": conduit::version::name(),
|
||||
"version": conduit::version::version(),
|
||||
})))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue