summaryrefslogtreecommitdiff
path: root/bucky/app
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-15 10:15:43 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-15 10:15:43 +0100
commit22a8b9796303e644e1177dbd18ee4dd22e4b92cc (patch)
treedfe972350c8e4fa52036fbce8bdd690c7a18981e /bucky/app
parentca1b3565ed87e04ee18514ce04f30366bfc76fe6 (diff)
dont bump the hootbox
Diffstat (limited to 'bucky/app')
-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 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() )