diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-15 06:52:54 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-15 06:52:54 +0100 |
| commit | a1b33089877660ba33331d76281e68790f35ae44 (patch) | |
| tree | 168692d34f8af123ef2bab505a3cdbe4d1d57229 /bucky/app/bucky.js | |
| parent | 7ad469291c015b33a2d20587db26b9621ed82d00 (diff) | |
keywords list
Diffstat (limited to 'bucky/app/bucky.js')
| -rw-r--r-- | bucky/app/bucky.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index 25de991..20bb2e5 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -151,7 +151,7 @@ var bucky = module.exports = { if (keyword) { keyword.set("threads", keyword.get("threads").toString()) keyword.set("ops", keyword.get("ops").toString()) - keyword.set("display", keyword.get("display").toString()) + keyword.set("display", (keyword.get("display") || '').toString()) } next() }) @@ -196,7 +196,6 @@ var bucky = module.exports = { if (! settings) { return res.sendStatus(500) } -console.log(privacy) res.thread.set('title', title) res.thread.set('keyword', keyword) res.thread.set('color', util.sanitize(req.body.color || 'blue')) @@ -280,6 +279,12 @@ console.log(privacy) next() }) }, + ensureThreadGroups: function (res, res, next){ + db.getThreadGroups().then(function(threadGroups){ + res.threadGroups = threadGroups + next() + }) + }, ensureThreadsForKeyword: function (req, res, next){ var keyword = req.params.keyword if (! keyword) { @@ -415,6 +420,7 @@ console.log(privacy) }) }, + /* PROFILE / USER */ ensureUser: function (req, res, next){ |
