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 ++++ public/assets/css/bucky.css | 3 +++ 2 files changed, 7 insertions(+) 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() ) diff --git a/public/assets/css/bucky.css b/public/assets/css/bucky.css index 9d2b36e..66058ba 100644 --- a/public/assets/css/bucky.css +++ b/public/assets/css/bucky.css @@ -161,6 +161,9 @@ table, tr { #hootbox button { width: 44px; } +#hoots { + width: 100%; +} #hoots, #hoots tr { margin: 0; padding: 0; -- cgit v1.2.3-70-g09d2