mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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
|
messages = messages
|
||||||
.map((msg, idx) => {
|
.map((msg, idx) => {
|
||||||
if (msg) {
|
if (msg) {
|
||||||
msg.messageId = parseInt(mids[idx], 10);
|
msg.messageId = utils.isNumber(mids[idx]) ? parseInt(mids[idx], 10) : mids[idx];
|
||||||
msg.ip = undefined;
|
msg.ip = undefined;
|
||||||
msg.isOwner = msg.fromuid === parseInt(uid, 10);
|
msg.isOwner = msg.fromuid === parseInt(uid, 10);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user