diff options
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 */ |
