mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
breaking: remove socket.emit('posts.reply')
remove socket.emit('posts.getPost')
This commit is contained in:
@@ -50,8 +50,8 @@ exports.doTopicAction = async function (action, event, caller, { tids }) {
|
||||
throw new Error('[[error:invalid-tid]]');
|
||||
}
|
||||
|
||||
const exists = (await Promise.all(tids.map(async tid => await topics.exists(tid)))).every(Boolean);
|
||||
if (!exists) {
|
||||
const exists = await topics.exists(tids);
|
||||
if (!exists.every(Boolean)) {
|
||||
throw new Error('[[error:no-topic]]');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user