From ca21a885d57d822647609cb589703f6710217eaa Mon Sep 17 00:00:00 2001 From: theS1LV3R Date: Wed, 18 Mar 2026 16:50:44 +0100 Subject: [PATCH] chore: Rename option index_page_allow_indexing to allow_web_indexing --- conduwuit-example.toml | 2 +- src/core/config/mod.rs | 2 +- src/web/pages/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conduwuit-example.toml b/conduwuit-example.toml index 8212628a..c8fdc681 100644 --- a/conduwuit-example.toml +++ b/conduwuit-example.toml @@ -1802,7 +1802,7 @@ # Allow or disallow search engine crawling by adding # `` to the index page. # -#index_page_allow_indexing = false +#allow_web_indexing = false [global.tls] diff --git a/src/core/config/mod.rs b/src/core/config/mod.rs index d8919291..aa410093 100644 --- a/src/core/config/mod.rs +++ b/src/core/config/mod.rs @@ -2098,7 +2098,7 @@ pub struct Config { /// /// default: false #[serde(default)] - pub index_page_allow_indexing: bool, + pub allow_web_indexing: bool, /// display: nested #[serde(default)] diff --git a/src/web/pages/mod.rs b/src/web/pages/mod.rs index 52ed5552..cbf78dfc 100644 --- a/src/web/pages/mod.rs +++ b/src/web/pages/mod.rs @@ -11,7 +11,7 @@ pub(crate) struct TemplateContext { impl From<&crate::State> for TemplateContext { fn from(state: &crate::State) -> Self { Self { - allow_indexing: state.config.index_page_allow_indexing, + allow_indexing: state.config.allow_web_indexing, } } }