From c88806506d2f8845a9fb914c960d0b6bbc5a8e1e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 6 Sep 2015 01:31:50 -0400 Subject: display hootbox --- lib/bucky.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/bucky.js') 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() }) }, -- cgit v1.2.3-70-g09d2