From 6bb51c36e2b228c18fbbebb47f9540d43443a8d7 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Thu, 11 Dec 2014 13:34:43 -0600 Subject: [PATCH] Admin flagging counts for more, automatically hides message --- src/controllers/groups.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/groups.js b/src/controllers/groups.js index 289e950bdd..1f40fb7684 100644 --- a/src/controllers/groups.js +++ b/src/controllers/groups.js @@ -271,7 +271,12 @@ api.flagChatMessage = function(req, res, next){ // Log total number of flags (publicly viewable) if(!message.flagCount) message.flagCount = 0; - message.flagCount++ + if(user.contributor.admin){ + // Arbitraty amount, higher than 2 + message.flagCount = 5; + } else { + message.flagCount++ + } group.markModified('chat'); group.save(function(err,_saved){