aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-06-18 05:02:45 +0000
committerr <r@freesoftwareextremist.com>2020-06-18 05:04:18 +0000
commit34c1d087afd26b2ca8426333c02c943d13f3fdb0 (patch)
treee05a72d81cdd1ad8034eccf3c2cc73f93c17f37d /templates
parentbd3f9ac9668d1363158b13efab41e734eaae2aed (diff)
downloadbloat-34c1d087afd26b2ca8426333c02c943d13f3fdb0.tar.gz
bloat-34c1d087afd26b2ca8426333c02c943d13f3fdb0.zip
Disable scope selection when replying to a direct post
Diffstat (limited to 'templates')
-rw-r--r--templates/postform.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/postform.tmpl b/templates/postform.tmpl
index 9c674e9..3bb2457 100644
--- a/templates/postform.tmpl
+++ b/templates/postform.tmpl
@@ -24,7 +24,7 @@
{{end}}
<span class="post-form-field">
<label for="post-visilibity"> Scope </label>
- <select id="post-visilibity" name="visibility">
+ <select id="post-visilibity" name="visibility" {{if .ReplyContext}}{{if .ReplyContext.ForceVisibility}}disabled{{end}}{{end}}>
<option value="public" {{if eq .DefaultVisibility "public"}}selected{{end}}>Public</option>
<option value="unlisted" {{if eq .DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>
<option value="private" {{if eq .DefaultVisibility "private"}}selected{{end}}>Private</option>