relegate legacy media handlers to separate file
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
84a8e36120
commit
fcfb323cd5
6 changed files with 399 additions and 382 deletions
|
@ -289,6 +289,8 @@ pub struct Config {
|
|||
#[serde(default)]
|
||||
pub allow_guests_auto_join_rooms: bool,
|
||||
|
||||
#[serde(default = "true_fn")]
|
||||
pub allow_legacy_media: bool,
|
||||
#[serde(default = "true_fn")]
|
||||
pub media_startup_check: bool,
|
||||
#[serde(default)]
|
||||
|
@ -745,6 +747,7 @@ impl fmt::Display for Config {
|
|||
line("Media integrity checks on startup", &self.media_startup_check.to_string());
|
||||
line("Media compatibility filesystem links", &self.media_compat_file_link.to_string());
|
||||
line("Prune missing media from database", &self.prune_missing_media.to_string());
|
||||
line("Allow legacy (unauthenticated) media", &self.allow_legacy_media.to_string());
|
||||
line("Prevent Media Downloads From", {
|
||||
let mut lst = vec![];
|
||||
for domain in &self.prevent_media_downloads_from {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue