1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-07-06 06:58:34 +02:00

Reduce media ID length from 256 to 32

Most common filesystems limit paths to 255 bytes.
This change brings down the media ID length to be similar to
Synapse servers (25), and makes it possible for clients to
download media with the ID included in the filename.
This commit is contained in:
miruka 2020-09-25 14:18:36 -04:00
parent f0beffb0a9
commit 26e200e290

View file

@ -9,7 +9,7 @@ use ruma::api::client::{
use rocket::{get, post};
use std::convert::TryInto;
const MXC_LENGTH: usize = 256;
const MXC_LENGTH: usize = 32;
#[cfg_attr(feature = "conduit_bin", get("/_matrix/media/r0/config"))]
pub fn get_media_config_route(