Added a flags key to message object

This commit is contained in:
Blade Barringer 2014-12-05 06:47:04 -06:00 committed by Matteo Pagliazzi
parent 9fd4588b74
commit e2c0a41f88

View file

@ -98,7 +98,8 @@ var chatDefaults = module.exports.chatDefaults = function(msg,user){
id: shared.uuid(),
text: msg,
timestamp: +new Date,
likes: {}
likes: {},
flags: {}
};
if (user) {
_.defaults(message, {
@ -330,4 +331,4 @@ Group.count({_id:'habitrpg'},function(err,ct){
type: 'guild',
privacy:'public'
}).save();
})
})