From 22a8b9796303e644e1177dbd18ee4dd22e4b92cc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 15 Dec 2017 10:15:43 +0100 Subject: dont bump the hootbox --- bucky/app/bucky.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bucky/app') diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index 1f90111..0c8d99a 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -169,6 +169,10 @@ var bucky = module.exports = { res.thread.save().then( () => next() ) }, bumpThreadRevisions: function (req, res, next){ + // don't bump the hootbox! + if (res.thread.get('id') == 1) { + return next() + } res.thread.set('revision', res.thread.get('revision')+1) res.thread.set('lastmodified', util.now()) res.thread.save().then( () => next() ) -- cgit v1.2.3-70-g09d2