From e3d64b9fdb8f8b2b429254d48e8186712d534c22 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sat, 29 Oct 2016 14:21:45 -0700 Subject: adding defauld status to form map --- system/admin/handlers.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index a477647..fb5a165 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -628,6 +628,9 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { ` if hasExt { status := q.Get("status") + if status == "" { + req.Form.Add("status", "") + } req.Form.Set("status", "public") publicURL := strings.TrimPrefix(req.URL.String(), req.URL.Scheme+req.URL.Host) -- cgit v1.2.3