mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: pass in missing uid
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = function (Posts) {
|
||||
}
|
||||
|
||||
if (data.toPid) {
|
||||
await checkToPid(data.toPid);
|
||||
await checkToPid(data.toPid, uid);
|
||||
}
|
||||
|
||||
const pid = await db.incrObjectField('global', 'nextPid');
|
||||
|
||||
Reference in New Issue
Block a user