From 8ddcc237a71af34408386e0593f9b6c07e077a69 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 25 May 2016 19:33:46 +0300 Subject: [PATCH] removed submit and lock --- src/socket.io/posts.js | 4 ---- src/socket.io/topics.js | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index 90163c532c..90d7a79284 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -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}); - } }); }; diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js index 451a1d0dce..0b8c170d8e 100644 --- a/src/socket.io/topics.js +++ b/src/socket.io/topics.js @@ -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]});