summaryrefslogtreecommitdiff
path: root/lib/bucky.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bucky.js')
-rw-r--r--lib/bucky.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/bucky.js b/lib/bucky.js
index 2488c31..ef6fbbc 100644
--- a/lib/bucky.js
+++ b/lib/bucky.js
@@ -39,7 +39,13 @@ var bucky = module.exports = {
next()
})
},
-
+ ensureLastlog: function (req, res, next){
+ db.getLastlog(6).then(function(lastlog){
+ res.lastlog = lastlog
+ next()
+ })
+ },
+
/* DETAILS */
ensureThread: function (req, res, next){