mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
closes #3045
This commit is contained in:
@@ -250,6 +250,12 @@ var db = require('./database'),
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
results.users.forEach(function(user, index) {
|
||||
if (user && !parseInt(user.uid, 10)) {
|
||||
Messaging.markRead(uid, uids[index]);
|
||||
}
|
||||
});
|
||||
|
||||
results.users = results.users.filter(function(user) {
|
||||
return user && parseInt(user.uid, 10);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user