mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
make a media section in the config file
This commit is contained in:
parent
f6b0a10e6e
commit
0a6d2b2731
4 changed files with 15 additions and 7 deletions
|
|
@ -443,7 +443,7 @@ fn legacy_media_routes(config: &Config) -> Router {
|
|||
// deprecated, but unproblematic
|
||||
let router = router.ruma_route(c2s::get_media_config_legacy_route);
|
||||
|
||||
if config.serve_media_unauthenticated {
|
||||
if config.media.serve_media_unauthenticated {
|
||||
router
|
||||
.ruma_route(c2s::get_content_legacy_route)
|
||||
.ruma_route(c2s::get_content_as_filename_legacy_route)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue