summaryrefslogtreecommitdiffstats
path: root/activities/views/posts.py
diff options
context:
space:
mode:
authorMichael Manfre2022-11-22 21:52:40 -0500
committerGitHub2022-11-22 19:52:40 -0700
commitcdfff32f9af75730ca560833744433f1dc07067f (patch)
treed62719a4bd3269ec33f7bcde6c1a783fcef9792e /activities/views/posts.py
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 'activities/views/posts.py')
-rw-r--r--activities/views/posts.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/activities/views/posts.py b/activities/views/posts.py
index 7950093..fce17e3 100644
--- a/activities/views/posts.py
+++ b/activities/views/posts.py
@@ -135,9 +135,10 @@ class Compose(FormView):
)
content_warning = forms.CharField(
required=False,
+ label=Config.lazy_system_value("content_warning_text"),
widget=forms.TextInput(
attrs={
- "placeholder": "Content Warning",
+ "placeholder": Config.lazy_system_value("content_warning_text"),
},
),
help_text="Optional - Post will be hidden behind this text until clicked",