mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
adding mid on the message returned data on addMessage
This commit is contained in:
@@ -74,8 +74,14 @@ var db = require('./database'),
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (!messages || !messages[0]) {
|
||||
return next(null, null);
|
||||
}
|
||||
|
||||
messages[0].newSet = isNewSet;
|
||||
next(null, messages ? messages[0] : null);
|
||||
messages[0].mid = mid;
|
||||
next(null, messages[0]);
|
||||
});
|
||||
}
|
||||
], callback);
|
||||
|
||||
Reference in New Issue
Block a user