some cleanup, dont send ip on newpost

This commit is contained in:
barisusakli
2016-03-24 20:55:10 +02:00
parent 0823cd9433
commit 52cec92df8
3 changed files with 18 additions and 34 deletions

View File

@@ -51,7 +51,7 @@ SocketPosts.reply = function(socket, data, callback) {
user.updateOnlineUsers(socket.uid);
socketHelpers.notifyOnlineUsers(socket.uid, result);
socketHelpers.notifyNew(socket.uid, 'newPost', result);
if (data.lock) {
socketTopics.doTopicAction('lock', 'event:topic_locked', socket, {tids: [postData.topic.tid], cid: postData.topic.cid});