Updating doku for slur filter.

rename_additional_slurs_to_slur_filter
Dessalines 2021-10-26 16:43:21 -04:00
parent 3e6963cbaa
commit fd10d7ac0a
3 changed files with 2 additions and 14 deletions

View File

@ -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?)

View File

@ -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
}

View File

@ -42,6 +42,7 @@ pub struct Settings {
pub pictrs_url: Option<String>,
/// 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<String>,
/// Maximum length of local community and user names
#[default(20)]