From aaa9561b7f6c474a9ec497a531a9c2e99af36b8f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 26 Aug 2018 00:07:56 -0400 Subject: [PATCH] Revert "moved filter:post.getPostSummaryByPids to before parsePosts call" This reverts commit cf82407a8f559d444d5d11536c052ec812b20755. --- src/posts/summary.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index 24090a01ee..139fea16a8 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -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); };