Skip to content

Node.js based forum software built for the modern web

moved pushUnreadCount

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