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