mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 15:06:38 +02:00
moved filter:post.getPostSummaryByPids to before parsePosts call
/@pitaj
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user