mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
check err and tids
This commit is contained in:
@@ -116,6 +116,10 @@ module.exports = function(Topics) {
|
||||
}
|
||||
|
||||
privileges.topics.filter('read', tids, uid, function(err, tids) {
|
||||
if (err || !tids.length) {
|
||||
return callback(err, []);
|
||||
}
|
||||
|
||||
var keys = tids.map(function(tid) {
|
||||
return 'topic:' + tid;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user