summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-29 14:21:45 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-29 14:21:45 -0700
commite3d64b9fdb8f8b2b429254d48e8186712d534c22 (patch)
treec8d31c8fc6d4fc8d9a04aa891334a5f762635f97
parent631fbefe6166756af7053debee0753a9b435c982 (diff)
adding defauld status to form map
-rw-r--r--system/admin/handlers.go3
1 files changed, 3 insertions, 0 deletions
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) {
</div>`
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)