use true_fn for startup_netburst option

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-29 16:39:48 -04:00 committed by June
parent 07135cc849
commit 93b03fe338
2 changed files with 2 additions and 3 deletions

1
Cargo.lock generated
View file

@ -445,6 +445,7 @@ dependencies = [
"ipaddress",
"itertools 0.12.1",
"jsonwebtoken",
"log",
"lru-cache",
"nix",
"num_cpus",

View file

@ -226,7 +226,7 @@ pub struct Config {
#[serde(with = "serde_regex")]
pub forbidden_usernames: RegexSet,
#[serde(default = "default_startup_netburst")]
#[serde(default = "true_fn")]
pub startup_netburst: bool,
#[serde(default)]
@ -679,5 +679,3 @@ fn default_url_preview_max_spider_size() -> usize {
}
fn default_new_user_displayname_suffix() -> String { "🏳️‍⚧️".to_owned() }
fn default_startup_netburst() -> bool { true }