diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-06 01:31:50 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-06 01:31:50 -0400 |
| commit | c88806506d2f8845a9fb914c960d0b6bbc5a8e1e (patch) | |
| tree | c271bb35972175d286f62ecfce76a8fce50f6aa7 /lib/bucky.js | |
| parent | 0d0c04ad510264f2dbd2deb3bbf0b0d0c0605a62 (diff) | |
display hootbox
Diffstat (limited to 'lib/bucky.js')
| -rw-r--r-- | lib/bucky.js | 6 |
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() }) }, |
