mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
no need to store 0 for all messages
for deleted and system, if its missing it defaults to 0
This commit is contained in:
@@ -48,10 +48,12 @@ module.exports = function (Messaging) {
|
||||
timestamp: timestamp,
|
||||
fromuid: uid,
|
||||
roomId: roomId,
|
||||
deleted: 0,
|
||||
system: data.system || 0,
|
||||
};
|
||||
|
||||
if (data.system) {
|
||||
message.system = data.system;
|
||||
}
|
||||
|
||||
if (data.ip) {
|
||||
message.ip = data.ip;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user