mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
filter:teasers.get provided with uid
This commit is contained in:
@@ -86,7 +86,7 @@ module.exports = function (Categories) {
|
||||
privileges.topics.filterTids('read', tids, uid, next);
|
||||
},
|
||||
function (tids, next) {
|
||||
getTopics(tids, next);
|
||||
getTopics(tids, uid, next);
|
||||
},
|
||||
function (topics, next) {
|
||||
assignTopicsToCategories(categoryData, topics);
|
||||
@@ -98,7 +98,7 @@ module.exports = function (Categories) {
|
||||
], callback);
|
||||
};
|
||||
|
||||
function getTopics(tids, callback) {
|
||||
function getTopics(tids, uid, callback) {
|
||||
var topicData;
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
@@ -119,7 +119,7 @@ module.exports = function (Categories) {
|
||||
|
||||
async.parallel({
|
||||
categoryData: async.apply(Categories.getCategoriesFields, cids, ['cid', 'parentCid']),
|
||||
teasers: async.apply(topics.getTeasers, _topicData),
|
||||
teasers: async.apply(topics.getTeasers, _topicData, uid),
|
||||
}, next);
|
||||
},
|
||||
function (results, next) {
|
||||
|
||||
Reference in New Issue
Block a user