removed submit and lock

v1.18.x
barisusakli 9 years ago
parent e8906fd9f6
commit 8ddcc237a7

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

Loading…
Cancel
Save