summaryrefslogtreecommitdiff
path: root/lib/bucky.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-04 23:37:33 -0400
committerJules Laplace <jules@okfoc.us>2015-09-04 23:37:33 -0400
commit0d0c04ad510264f2dbd2deb3bbf0b0d0c0605a62 (patch)
treecde48b2e1db249f61edafc28fd649aed22583fd4 /lib/bucky.js
parentb2d2bc1c592f5263ed30c26b6a8ea5f48e230e90 (diff)
get hootbox
Diffstat (limited to 'lib/bucky.js')
-rw-r--r--lib/bucky.js10
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 */