mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
make option name less redundant
This commit is contained in:
parent
0a6d2b2731
commit
ae920fdbe8
3 changed files with 3 additions and 3 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.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)
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ pub(crate) struct Config {
|
|||
#[serde(deny_unknown_fields)]
|
||||
pub(crate) struct MediaConfig {
|
||||
#[serde(default)]
|
||||
pub(crate) serve_media_unauthenticated: bool,
|
||||
pub(crate) allow_unauthenticated_access: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue