mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Admin flagging counts for more, automatically hides message
This commit is contained in:
parent
d6262efd3f
commit
6bb51c36e2
1 changed files with 6 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue