summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-02 01:38:44 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-02 01:38:44 -0700
commit2bc4e3714ed16977135a2329e881f860930f2513 (patch)
treea42bd9b67dd027f332014a9d0c70d0e4bb430357 /system/admin/handlers.go
parent38182ae48f05d0913ada452730a4e564423592a0 (diff)
fixing default status
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index e2309aa..e3d99cc 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -768,9 +768,10 @@ func adminPostListItem(p editor.Editable, t, status string) []byte {
cid := fmt.Sprintf("%d", p.ContentID())
- if status == "public" {
+ switch status {
+ case "public", "":
status = ""
- } else {
+ default:
status = "_" + status
}