summaryrefslogtreecommitdiff
path: root/system/db
diff options
context:
space:
mode:
Diffstat (limited to 'system/db')
-rw-r--r--system/db/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go
index 685ac13..3e6e5a4 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -572,7 +572,7 @@ func SortContent(namespace string) {
// encode to json and store as 'i:post.Time()':post
for i := range bb {
- cid := fmt.Sprintf("%d:%d", i, posts[i].Time())
+ cid := fmt.Sprintf("%d", posts[i].Time())
err = b.Put([]byte(cid), bb[i])
if err != nil {
return err