make option name less redundant

This commit is contained in:
Charles Hall 2025-02-28 10:46:21 -08:00
parent 0a6d2b2731
commit ae920fdbe8
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 3 additions and 3 deletions

View file

@ -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.media.serve_media_unauthenticated {
if config.media.allow_unauthenticated_access {
router
.ruma_route(c2s::get_content_legacy_route)
.ruma_route(c2s::get_content_as_filename_legacy_route)