1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-07-05 18:08:35 +02:00

fix MR 153 requests; cargo fmt

This commit is contained in:
CapsizeGlimmer 2020-07-24 16:04:01 -04:00 committed by timokoesters
parent fa2da9e048
commit 8fcf8e20b8
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4

View file

@ -2980,8 +2980,10 @@ pub fn send_event_to_device_route(
pub fn get_media_config_route(
db: State<'_, Database>,
) -> ConduitResult<get_media_config::Response> {
let upload_size = db.globals.max_request_size().into();
Ok(get_media_config::Response { upload_size }.into())
Ok(get_media_config::Response {
upload_size: db.globals.max_request_size().into(),
}
.into())
}
#[post("/_matrix/media/r0/upload", data = "<body>")]