From 3aad9b4b70921e9be670560f42f00dcd448e27bb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 11 Dec 2017 10:34:34 +0100 Subject: bumpViewCount and revisions --- bucky/app/router.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bucky/app/router.js') diff --git a/bucky/app/router.js b/bucky/app/router.js index 8ff9d87..ac176bc 100644 --- a/bucky/app/router.js +++ b/bucky/app/router.js @@ -85,6 +85,7 @@ module.exports = function(app){ bucky.ensureKeywordForThread, bucky.ensureCommentsForThread, bucky.ensureFilesForThread, + bucky.bumpViewCount, function(req, res){ res.json({ thread: res.thread, @@ -111,6 +112,7 @@ module.exports = function(app){ bucky.verifyFilesOrComment, bucky.createOptionalFiles, bucky.createOptionalComment, + bucky.bumpThreadRevisions, function(req, res){ res.json({ comment: res.comment @@ -127,7 +129,9 @@ module.exports = function(app){ middleware.ensureAuthenticated, bucky.ensureComment, bucky.checkCommentPrivacy, + bucky.ensureCommentThread, bucky.updateComment, + bucky.bumpThreadRevisions, function(req, res){ res.json({ comment: res.comment }) }) -- cgit v1.2.3-70-g09d2