summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
authorMichael Manfre2022-11-22 21:52:40 -0500
committerGitHub2022-11-22 19:52:40 -0700
commitcdfff32f9af75730ca560833744433f1dc07067f (patch)
treed62719a4bd3269ec33f7bcde6c1a783fcef9792e /users
parentdb0edcd2ae7ad3d191974a47b8c0da8c3fc31e80 (diff)
downloadtakahe-cdfff32f9af75730ca560833744433f1dc07067f.tar.gz
takahe-cdfff32f9af75730ca560833744433f1dc07067f.tar.bz2
takahe-cdfff32f9af75730ca560833744433f1dc07067f.zip
Content warning name customisation
Allows the name of Content Warning to be customized (e.g. to "Content Summary"). Fixes #28.
Diffstat (limited to 'users')
-rw-r--r--users/views/admin/settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/users/views/admin/settings.py b/users/views/admin/settings.py
index 0ed9a60..44a338f 100644
--- a/users/views/admin/settings.py
+++ b/users/views/admin/settings.py
@@ -37,6 +37,10 @@ class BasicSettings(AdminSettingsPage):
"title": "Maximum Post Length",
"help_text": "The maximum number of characters allowed per post",
},
+ "content_warning_text": {
+ "title": "Content Warning Feature Name",
+ "help_text": "What the feature that lets users provide post summaries is called",
+ },
"site_about": {
"title": "About This Site",
"help_text": "Displayed on the homepage and the about page.\nNewlines are preserved; HTML also allowed.",
@@ -87,7 +91,7 @@ class BasicSettings(AdminSettingsPage):
"highlight_color",
],
"Signups": ["signup_allowed", "signup_invite_only", "signup_text"],
- "Posts": ["post_length"],
+ "Posts": ["post_length", "content_warning_text"],
"Identities": [
"identity_max_per_user",
"identity_min_length",