mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-25 01:50:44 +02:00
removed submit and lock
This commit is contained in:
@@ -52,10 +52,6 @@ SocketPosts.reply = function(socket, data, callback) {
|
||||
user.updateOnlineUsers(socket.uid);
|
||||
|
||||
socketHelpers.notifyNew(socket.uid, 'newPost', result);
|
||||
|
||||
if (data.lock) {
|
||||
socketTopics.doTopicAction('lock', 'event:topic_locked', socket, {tids: [postData.topic.tid], cid: postData.topic.cid});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -36,10 +36,6 @@ SocketTopics.post = function(socket, data, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (data.lock) {
|
||||
SocketTopics.doTopicAction('lock', 'event:topic_locked', socket, {tids: [result.topicData.tid], cid: result.topicData.cid});
|
||||
}
|
||||
|
||||
callback(null, result.topicData);
|
||||
|
||||
socket.emit('event:new_post', {posts: [result.postData]});
|
||||
|
||||
Reference in New Issue
Block a user