mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
if user is in the topic when a new post comes in mark the topic read
This commit is contained in:
@@ -141,9 +141,7 @@ SocketUser.getOnlineAnonCount = function(socket, data, callback) {
|
||||
};
|
||||
|
||||
SocketUser.getUnreadCount = function(socket, data, callback) {
|
||||
topics.getUnreadTids(socket.uid, 0, 19, function(err, tids) {
|
||||
callback(err, tids?tids.length:0);
|
||||
});
|
||||
topics.getUnreadTids(socket.uid, 0, 19, callback);
|
||||
};
|
||||
|
||||
SocketUser.getActiveUsers = function(socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user