mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: use system pseudo-user for topic move call
This commit is contained in:
@@ -66,7 +66,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
|
|||||||
|
|
||||||
if (options.cid && cid === -1) {
|
if (options.cid && cid === -1) {
|
||||||
// Move topic
|
// Move topic
|
||||||
await topics.tools.move(tid, { cid: options.cid, uid: 0 });
|
await topics.tools.move(tid, { cid: options.cid, uid: 'system' });
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// mainPid ok to leave as-is
|
// mainPid ok to leave as-is
|
||||||
|
|||||||
Reference in New Issue
Block a user