mirror of https://github.com/LemmyNet/lemmy.git
Updating doku for slur filter again.
parent
fd10d7ac0a
commit
f970169d9e
|
@ -105,7 +105,7 @@
|
||||||
# Address where pictrs is available (for image hosting)
|
# Address where pictrs is available (for image hosting)
|
||||||
pictrs_url: "http:#localhost:8080"
|
pictrs_url: "http:#localhost:8080"
|
||||||
# Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)`
|
# Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)`
|
||||||
slur_filter: "some basic regex, IE: word1|word2"
|
slur_filter: "(\bThis\b)|(\bis\b)|(\bsample\b)"
|
||||||
# Maximum length of local community and user names
|
# Maximum length of local community and user names
|
||||||
actor_name_max_length: 20
|
actor_name_max_length: 20
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ pub struct Settings {
|
||||||
pub pictrs_url: Option<String>,
|
pub pictrs_url: Option<String>,
|
||||||
/// Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)`
|
/// Regex for slurs which are prohibited. Example: `(\bThis\b)|(\bis\b)|(\bsample\b)`
|
||||||
#[default(None)]
|
#[default(None)]
|
||||||
#[doku(example = "some basic regex, IE: word1|word2")]
|
#[doku(example = "(\\bThis\\b)|(\\bis\\b)|(\\bsample\\b)")]
|
||||||
pub slur_filter: Option<String>,
|
pub slur_filter: Option<String>,
|
||||||
/// Maximum length of local community and user names
|
/// Maximum length of local community and user names
|
||||||
#[default(20)]
|
#[default(20)]
|
||||||
|
|
Loading…
Reference in New Issue