summaryrefslogtreecommitdiff
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
parentca1b3565ed87e04ee18514ce04f30366bfc76fe6 (diff)
dont bump the hootbox
-rw-r--r--bucky/app/bucky.js4
-rw-r--r--public/assets/css/bucky.css3
2 files changed, 7 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() )
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;