From 5ee5bc6d28a6adf23c60176d6caffeb6f74b756d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 23 Dec 2017 07:18:59 +0100 Subject: upload default avatar --- bucky/app/bucky.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bucky/app/bucky.js') diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index b331688..c85ef45 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -526,7 +526,7 @@ var bucky = module.exports = { next() }, checkThreadPrivacy: function(req, res, next) { - if (! res.thread.checkPrivacy(req.user)) { + if (res.thread.get('id') !== 1 && ! res.thread.checkPrivacy(req.user)) { return res.sendStatus(500) } next() -- cgit v1.2.3-70-g09d2