From a0aeebd23738c3b7320419bfc7280ea3a87554eb Mon Sep 17 00:00:00 2001 From: Ginger Date: Tue, 19 May 2026 14:41:56 -0400 Subject: [PATCH] fix: Correct config file example section name --- changelog.d/+7865cde6.feature.md | 2 +- conduwuit-example.toml | 2 +- src/core/config/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.d/+7865cde6.feature.md b/changelog.d/+7865cde6.feature.md index 03f6699a1..1819078a2 100644 --- a/changelog.d/+7865cde6.feature.md +++ b/changelog.d/+7865cde6.feature.md @@ -1 +1 @@ -Users may now be forbidden from deactivating their own accounts with the new `allow_deactivation` config option. +Users may now be forbidden from deactivating their own accounts with the new `allow_deactivation` config option. Contributed by @ginger. diff --git a/conduwuit-example.toml b/conduwuit-example.toml index b5e8519b9..be9b402c0 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -1986,7 +1986,7 @@ # #require_email_for_token_registration = false -#[global.registration-terms] +#[global.registration_terms] # The language code to provide to clients along with the policy documents. # diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs index e6200fda8..f3b2a1d5f 100644 --- a/src/core/config/mod.rs +++ b/src/core/config/mod.rs @@ -2360,7 +2360,7 @@ pub struct SmtpConfig { #[derive(Clone, Debug, Default, Deserialize, Serialize)] #[config_example_generator( filename = "conduwuit-example.toml", - section = "global.registration-terms", + section = "global.registration_terms", optional = "true" )] pub struct RegistrationTerms {