diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-04 23:37:33 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-04 23:37:33 -0400 |
| commit | 0d0c04ad510264f2dbd2deb3bbf0b0d0c0605a62 (patch) | |
| tree | cde48b2e1db249f61edafc28fd649aed22583fd4 /lib/bucky.js | |
| parent | b2d2bc1c592f5263ed30c26b6a8ea5f48e230e90 (diff) | |
get hootbox
Diffstat (limited to 'lib/bucky.js')
| -rw-r--r-- | lib/bucky.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/bucky.js b/lib/bucky.js index ef822c4..aed6494 100644 --- a/lib/bucky.js +++ b/lib/bucky.js @@ -37,7 +37,15 @@ var bucky = module.exports = { }) next() }) - }, + }, + 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() ) + }) + next() + }) + }, /* DETAILS */ |
