Skip to content

Node.js based forum software built for the modern web

fix: pass in missing uid

Barış Soner Uşaklıd50473dfeb11
diff --git a/src/posts/create.js b/src/posts/create.js
index b248f04a36..d541564c2e 100644
--- a/src/posts/create.js
+++ b/src/posts/create.js
@@ -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');