summaryrefslogtreecommitdiff
path: root/lib/bucky.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-06 01:31:50 -0400
committerJules Laplace <jules@okfoc.us>2015-09-06 01:31:50 -0400
commitc88806506d2f8845a9fb914c960d0b6bbc5a8e1e (patch)
treec271bb35972175d286f62ecfce76a8fce50f6aa7 /lib/bucky.js
parent0d0c04ad510264f2dbd2deb3bbf0b0d0c0605a62 (diff)
display hootbox
Diffstat (limited to 'lib/bucky.js')
-rw-r--r--lib/bucky.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bucky.js b/lib/bucky.js
index aed6494..dddbae9 100644
--- a/lib/bucky.js
+++ b/lib/bucky.js
@@ -39,10 +39,8 @@ var bucky = module.exports = {
})
},
ensureHootbox: function (req, res, next){
- db.getCommentsForThread(1, 50).then(function(hootbox){
- res.hootbox = hootbox.forEach(function(comment){
- comment.set("comment", comment.get("comment").toString() )
- })
+ db.getCommentsForThread(1, 9).then(function(hootbox){
+ res.hootbox = hootbox
next()
})
},