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

@ -139,7 +139,7 @@ This will be the first release of Grapevine since it was forked from Conduit
thumbnail request fails.
([!58](https://gitlab.computer.surgery/matrix/grapevine/-/merge_requests/58))
11. **BREAKING:** Disable unauthenticated access to media by default. Use
`media.serve_media_unauthenticated` to configure this behavior.
`media.allow_unauthenticated_access` to configure this behavior.
([!103](https://gitlab.computer.surgery/matrix/grapevine/-/merge_requests/103),
[!140](https://gitlab.computer.surgery/matrix/grapevine/-/merge_requests/140))
12. **BREAKING:** Split CLI into multiple subcommands. The CLI invocation to run

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)

View file

@ -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)]