mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
moved pushUnreadCount
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user