removed extra priv checks

-removed category check from recentreplies since pids are already
checked
-removed category check from topics/unread.js since topics are filtered
now
-added array checks to src/topics.js
This commit is contained in:
barisusakli
2014-11-14 19:52:25 -05:00
parent 5c7487c13b
commit 6b13a84d2f
3 changed files with 26 additions and 51 deletions

View File

@@ -318,6 +318,9 @@ var async = require('async'),
};
Topics.getTopicsFields = function(tids, fields, callback) {
if (!Array.isArray(tids) || !tids.length) {
return callback(null, []);
}
var keys = tids.map(function(tid) {
return 'topic:' + tid;
});