summaryrefslogtreecommitdiff
path: root/bucky
diff options
context:
space:
mode:
Diffstat (limited to 'bucky')
-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() )