summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)