From 2c890ad609ed6d7bc80795cd575991ae1084e675 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 17 Jul 2014 18:50:03 -0400 Subject: [PATCH] moved pushUnreadCount --- src/socket.io/posts.js | 1 + src/socket.io/topics.js | 1 + src/topics/create.js | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index 04ef28370e..3636a1f0a2 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -43,6 +43,7 @@ SocketPosts.reply = function(socket, data, callback) { }); module.parent.exports.emitTopicPostStats(); + topics.pushUnreadCount(); callback(); } diff --git a/src/socket.io/topics.js b/src/socket.io/topics.js index 68e16671a3..6dd0ef3168 100644 --- a/src/socket.io/topics.js +++ b/src/socket.io/topics.js @@ -47,6 +47,7 @@ SocketTopics.post = function(socket, data, callback) { }); module.parent.exports.emitTopicPostStats(); + topics.pushUnreadCount(); callback(null, result.topicData); } diff --git a/src/topics/create.js b/src/topics/create.js index 1cab7d2a42..1ecf15092f 100644 --- a/src/topics/create.js +++ b/src/topics/create.js @@ -225,7 +225,6 @@ module.exports = function(Topics) { Topics.markAsRead(tid, uid, next); }, function(result, next) { - Topics.pushUnreadCount(); posts.getUserInfoForPosts([postData.uid], next); }, function(userInfo, next) {