Revert "moved filter:post.getPostSummaryByPids to before parsePosts call"

This reverts commit cf82407a8f.
This commit is contained in:
Julian Lam
2018-08-26 00:07:56 -04:00
parent badb06a9de
commit aaa9561b7f

View File

@@ -78,16 +78,13 @@ module.exports = function (Posts) {
return results.topics[post.tid];
});
next(null, posts);
parsePosts(posts, options, next);
},
function (posts, next) {
plugins.fireHook('filter:post.getPostSummaryByPids', { posts: posts, uid: uid }, next);
},
function (data, next) {
parsePosts(data.posts, options, next);
},
function (posts, next) {
next(null, posts);
next(null, data.posts);
},
], callback);
};