Skip to content

Node.js based forum software built for the modern web

removed submit and lock

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