mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: double-OP issue when remote reply comes in to local mainPid
This commit is contained in:
@@ -92,7 +92,7 @@ Notes.getParentChain = async (uid, input) => {
|
||||
await traverse(uid, postData.toPid);
|
||||
} else if (utils.isNumber(id)) { // local pid without toPid, could be OP or reply to OP
|
||||
const mainPid = await topics.getTopicField(postData.tid, 'mainPid');
|
||||
if (mainPid !== id) {
|
||||
if (mainPid !== parseInt(id, 10)) {
|
||||
await traverse(uid, mainPid);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user