breaking: remove socket.emit('posts.reply')

remove socket.emit('posts.getPost')
This commit is contained in:
Barış Soner Uşaklı
2021-12-12 12:19:24 -05:00
parent 6d95684bc8
commit 4604a5724c
5 changed files with 27 additions and 79 deletions

View File

@@ -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]]');
}