mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
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:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user