From 8a3178339ad407ec85ef0cd014a6ad13bfb4cadd Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 24 Apr 2020 11:06:26 +0200 Subject: fix burial offset --- bucky/app/bucky.js | 8 ++++---- 1 file 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 -- cgit v1.2.3-70-g09d2