summaryrefslogtreecommitdiff
path: root/bucky/app/bucky.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-04-24 11:06:26 +0200
committerJules Laplace <julescarbon@gmail.com>2020-04-24 11:06:26 +0200
commit8a3178339ad407ec85ef0cd014a6ad13bfb4cadd (patch)
tree433ba274cdb2e06b7b7c982305663abc36c185b0 /bucky/app/bucky.js
parent0b5e74430f688aa08d374966d39b7281e9b064cc (diff)
fix burial offset
Diffstat (limited to 'bucky/app/bucky.js')
-rw-r--r--bucky/app/bucky.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js
index 47e8d26..478b71b 100644
--- a/bucky/app/bucky.js
+++ b/bucky/app/bucky.js
@@ -179,10 +179,6 @@ 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)
@@ -231,6 +227,10 @@ var bucky = module.exports = {
next()
})
},
+ buryThread: function (req, res, next){
+ res.thread.set('lastmodified', util.now() - (14 * 86400))
+ res.thread.save().then( () => next() )
+ },
// ensureInterestedUsers: function(req, res, next){
// // given a thread, find people who might be interested in it
// // - other people who have been in threads with you