|
|
|
@ -57,7 +57,12 @@ module.exports = function (Topics) {
|
|
|
|
|
function (next) {
|
|
|
|
|
posts.getPostsFields(teaserPids, ['pid', 'uid', 'timestamp', 'tid', 'content'], next);
|
|
|
|
|
},
|
|
|
|
|
async.apply(user.blocks.filter, uid),
|
|
|
|
|
function (_postData, next) {
|
|
|
|
|
_postData = _postData.filter(function (post) {
|
|
|
|
|
return post && parseInt(post.pid, 10);
|
|
|
|
|
})
|
|
|
|
|
user.blocks.filter(uid, _postData, next);
|
|
|
|
|
},
|
|
|
|
|
function (_postData, next) {
|
|
|
|
|
postData = _postData;
|
|
|
|
|
var uids = _.uniq(postData.map(function (post) {
|
|
|
|
|