diff --git a/config/config.hjson b/config/config.hjson index 66a52aa94..8d2ae84c7 100644 --- a/config/config.hjson +++ b/config/config.hjson @@ -5,19 +5,6 @@ federation: { enabled: true } -# # email sending configuration -# email: { -# # hostname and port of the smtp server -# smtp_server: "" -# # login name for smtp server -# smtp_login: "" -# # password to login to the smtp server -# smtp_password: "" -# # address to send emails from, eg "noreply@your-instance.com" -# smtp_from_address: "" -# # whether or not smtp connections should use tls -# use_tls: true -# } slur_filter: ''' (fag(g|got|tard)?\b|cock\s?sucker(s|ing)?|ni((g{2,}|q)+|[gq]{2,})[e3r]+(s|z)?|mudslime?s?|kikes?|\bspi(c|k)s?\b|\bchinks?|gooks?|bitch(es|ing|y)?|whor(es?|ing)|\btr(a|@)nn?(y|ies?)|\b(b|re|r)tard(ed)?s?) diff --git a/config/defaults.hjson b/config/defaults.hjson index e698763fd..0fa61ea38 100644 --- a/config/defaults.hjson +++ b/config/defaults.hjson @@ -105,7 +105,7 @@ # Address where pictrs is available (for image hosting) pictrs_url: "http:#localhost:8080" # Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)` - slur_filter: "string" + slur_filter: "some basic regex, IE: word1|word2" # Maximum length of local community and user names actor_name_max_length: 20 } diff --git a/crates/utils/src/settings/structs.rs b/crates/utils/src/settings/structs.rs index 78f7cef87..d49ce67bc 100644 --- a/crates/utils/src/settings/structs.rs +++ b/crates/utils/src/settings/structs.rs @@ -42,6 +42,7 @@ pub struct Settings { pub pictrs_url: Option, /// Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)` #[default(None)] + #[doku(example = "some basic regex, IE: word1|word2")] pub slur_filter: Option, /// Maximum length of local community and user names #[default(20)]