mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: empty mid on frontend for remote posts
This commit is contained in:
@@ -50,7 +50,7 @@ module.exports = function (Messaging) {
|
||||
messages = messages
|
||||
.map((msg, idx) => {
|
||||
if (msg) {
|
||||
msg.messageId = parseInt(mids[idx], 10);
|
||||
msg.messageId = utils.isNumber(mids[idx]) ? parseInt(mids[idx], 10) : mids[idx];
|
||||
msg.ip = undefined;
|
||||
msg.isOwner = msg.fromuid === parseInt(uid, 10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user