aboutsummaryrefslogtreecommitdiff
path: root/outboxPost.go
diff options
context:
space:
mode:
authorFChannel <>2021-06-19 18:26:14 -0700
committerFChannel <>2021-06-19 18:26:14 -0700
commit6b265b0a8c2e45422f4a4601e041d44e5cef1c1b (patch)
tree7480eb20d741caa0c0e0b9ae03dee8bfaa739c16 /outboxPost.go
parenta257a631ad6c9d6bcb3ae91057ca74a5e1d9515c (diff)
added sensitive content checkbox for upload
Diffstat (limited to 'outboxPost.go')
-rw-r--r--outboxPost.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/outboxPost.go b/outboxPost.go
index e86703d..c5e582a 100644
--- a/outboxPost.go
+++ b/outboxPost.go
@@ -351,6 +351,7 @@ func ObjectFromForm(r *http.Request, db *sql.DB, obj ObjectBase) ObjectBase {
obj.TripCode = EscapeString(r.FormValue("tripcode"))
obj.Name = EscapeString(r.FormValue("subject"))
obj.Content = EscapeString(r.FormValue("comment"))
+ obj.Sensitive = (r.FormValue("sensitive") != "")
obj = ParseOptions(r, obj)