From 01b3d82d99ee36ce6dcc1d136edc54b7eb4d49fd Mon Sep 17 00:00:00 2001 From: Ginger Date: Thu, 7 May 2026 10:23:57 -0400 Subject: [PATCH] fix: Fix registration terms example in config --- conduwuit-example.toml | 5 ++--- src/core/config/mod.rs | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/conduwuit-example.toml b/conduwuit-example.toml index 50575c4e3..0643ea54b 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -1981,9 +1981,8 @@ # # Example: # ```ignore -# [global.registration_terms.documents.privacy_policy] -# en = { name = "Privacy Policy", url = "https://homeserver.example/en/privacy_policy.html" } -# es = { name = "Política de Privacidad", url = "https://homeserver.example/es/privacy_policy.html" } +# [global.registration_terms.documents] +# privacy_policy = { name = "Privacy Policy", url = "https://homeserver.example/en/privacy_policy.html" } # ``` # #documents = {} diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs index a662194c3..c47b6d34b 100644 --- a/src/core/config/mod.rs +++ b/src/core/config/mod.rs @@ -2357,9 +2357,8 @@ pub struct RegistrationTerms { /// /// Example: /// ```ignore - /// [global.registration_terms.documents.privacy_policy] - /// en = { name = "Privacy Policy", url = "https://homeserver.example/en/privacy_policy.html" } - /// es = { name = "Política de Privacidad", url = "https://homeserver.example/es/privacy_policy.html" } + /// [global.registration_terms.documents] + /// privacy_policy = { name = "Privacy Policy", url = "https://homeserver.example/en/privacy_policy.html" } /// ``` /// /// default: {}