moved pushUnreadCount

v1.18.x
barisusakli 11 years ago
parent e6a5199174
commit 2c890ad609

@ -43,6 +43,7 @@ SocketPosts.reply = function(socket, data, callback) {
});
module.parent.exports.emitTopicPostStats();
topics.pushUnreadCount();
callback();
}

@ -47,6 +47,7 @@ SocketTopics.post = function(socket, data, callback) {
});
module.parent.exports.emitTopicPostStats();
topics.pushUnreadCount();
callback(null, result.topicData);
}

@ -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) {

Loading…
Cancel
Save