mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
checks
This commit is contained in:
@@ -89,7 +89,9 @@ SocketTopics.markAsRead = function(socket, tids, callback) {
|
||||
if (!tids.length) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
tids = tids.filter(function(tid) {
|
||||
return tid && utils.isNumber(tid);
|
||||
});
|
||||
topics.markAsRead(tids, socket.uid, function(err) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
|
||||
Reference in New Issue
Block a user