mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
closes #5485
This commit is contained in:
@@ -257,6 +257,7 @@ SocketUser.getUnreadCounts = function (socket, data, callback) {
|
||||
async.parallel({
|
||||
unreadTopicCount: async.apply(topics.getTotalUnread, socket.uid),
|
||||
unreadNewTopicCount: async.apply(topics.getTotalUnread, socket.uid, 'new'),
|
||||
unreadWatchedTopicCount: async.apply(topics.getTotalUnread, socket.uid, 'watched'),
|
||||
unreadChatCount: async.apply(messaging.getUnreadCount, socket.uid),
|
||||
unreadNotificationCount: async.apply(user.notifications.getUnreadCount, socket.uid),
|
||||
}, callback);
|
||||
|
||||
Reference in New Issue
Block a user