mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
breaking: remove socket.emit('posts.reply')
remove socket.emit('posts.getPost')
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user