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

@@ -60,6 +60,9 @@ topicsAPI.create = async function (caller, data) {
};
topicsAPI.reply = async function (caller, data) {
if (!data || !data.tid || (meta.config.minimumPostLength !== 0 && !data.content)) {
throw new Error('[[error:invalid-data]]');
}
const payload = { ...data };
apiHelpers.setDefaultPostData(caller, payload);