Skip to content

Node.js based forum software built for the modern web

forgot to return just posts array

psychobunny180625ece34b
diff --git a/src/posts.js b/src/posts.js
index 745e7f0d2f..dcedf4383d 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -344,7 +344,9 @@ var async = require('async'),
next(null, post);
});
}, function(err, posts) {
- plugins.fireHook('filter:post.getPostSummaryByPids', {posts: posts, uid: uid}, callback);
+ plugins.fireHook('filter:post.getPostSummaryByPids', {posts: posts, uid: uid}, function(err, postData) {
+ callback(err, postData.posts);
+ });
});
});
});