diff options
author | FChannel <> | 2021-06-19 18:26:14 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-19 18:26:14 -0700 |
commit | 6b265b0a8c2e45422f4a4601e041d44e5cef1c1b (patch) | |
tree | 7480eb20d741caa0c0e0b9ae03dee8bfaa739c16 /outboxPost.go | |
parent | a257a631ad6c9d6bcb3ae91057ca74a5e1d9515c (diff) |
added sensitive content checkbox for upload
Diffstat (limited to 'outboxPost.go')
-rw-r--r-- | outboxPost.go | 1 |
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) |