summaryrefslogtreecommitdiff
path: root/bucky/app/bucky.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-04-24 11:04:44 +0200
committerJules Laplace <julescarbon@gmail.com>2020-04-24 11:04:44 +0200
commit0b5e74430f688aa08d374966d39b7281e9b064cc (patch)
treecad000c7a71389e281ad96d35f4e764bcf18f871 /bucky/app/bucky.js
parente24088c27863001154a302fb32f02c81832800e0 (diff)
bury thread api
Diffstat (limited to 'bucky/app/bucky.js')
-rw-r--r--bucky/app/bucky.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js
index 74caa66..47e8d26 100644
--- a/bucky/app/bucky.js
+++ b/bucky/app/bucky.js
@@ -179,6 +179,10 @@ var bucky = module.exports = {
next()
})
},
+ buryThread: function (req, res, next){
+ res.thread.set('lastmodified', util.now() - (14 * 86400 * 1000))
+ res.thread.save().then( () => next() )
+ },
bumpViewCount: function(req, res, next) {
res.thread.set('viewed', res.thread.get('viewed') + 1)