mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
omg I don't know what I am doing
This commit is contained in:
@@ -353,14 +353,25 @@ var async = require('async'),
|
||||
return parseInt(read[index], 10) === 0;
|
||||
});
|
||||
|
||||
unreadTids.push.apply(unreadTids, newtids);
|
||||
// Filter out topics that belong to categories that this user cannot access
|
||||
async.filter(newtids, function(tid, next) {
|
||||
threadTools.privileges(tid, uid, function(err, privileges) {
|
||||
if (!err && privileges.read) {
|
||||
next(true);
|
||||
} else {
|
||||
next(false);
|
||||
}
|
||||
});
|
||||
}, function(newtids) {
|
||||
unreadTids.push.apply(unreadTids, newtids);
|
||||
|
||||
if(continueCondition()) {
|
||||
start = stop + 1;
|
||||
stop = start + 19;
|
||||
}
|
||||
if(continueCondition()) {
|
||||
start = stop + 1;
|
||||
stop = start + 19;
|
||||
}
|
||||
|
||||
callback(null);
|
||||
callback(null);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user