From 6b265b0a8c2e45422f4a4601e041d44e5cef1c1b Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 19 Jun 2021 18:26:14 -0700 Subject: added sensitive content checkbox for upload --- outboxPost.go | 1 + 1 file changed, 1 insertion(+) (limited to 'outboxPost.go') 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) -- cgit v1.2.3