From cf82407a8f559d444d5d11536c052ec812b20755 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 24 Aug 2018 14:54:08 -0400 Subject: [PATCH] moved filter:post.getPostSummaryByPids to before parsePosts call /@pitaj --- src/posts/summary.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index 139fea16a8..24090a01ee 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -78,13 +78,16 @@ module.exports = function (Posts) { return results.topics[post.tid]; }); - parsePosts(posts, options, next); + next(null, posts); }, function (posts, next) { plugins.fireHook('filter:post.getPostSummaryByPids', { posts: posts, uid: uid }, next); }, function (data, next) { - next(null, data.posts); + parsePosts(data.posts, options, next); + }, + function (posts, next) { + next(null, posts); }, ], callback); };