From ffa19ffc49ac11c426d29b543e3df26d3de61ec8 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sat, 29 Oct 2016 17:39:55 -0700 Subject: adding db procedures and updating handler for external submissions / pending content --- system/db/content.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system') diff --git a/system/db/content.go b/system/db/content.go index 0b486ba..f3397ba 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -199,6 +199,10 @@ func ContentAll(namespace string) [][]byte { store.View(func(tx *bolt.Tx) error { b := tx.Bucket([]byte(namespace)) + if b == nil { + return nil + } + numKeys := b.Stats().KeyN posts = make([][]byte, 0, numKeys) -- cgit v1.2.3