Skip to content

Node.js based forum software built for the modern web

re: #4578

Julian Lam5f36bfab01d5
diff --git a/src/categories/recentreplies.js b/src/categories/recentreplies.js
index 4d152892d3..9651a49c20 100644
--- a/src/categories/recentreplies.js
+++ b/src/categories/recentreplies.js
@@ -105,7 +105,10 @@ module.exports = function(Categories) {
function (next) {
topics.getTopicsFields(tids, ['tid', 'mainPid', 'slug', 'title', 'teaserPid', 'cid', 'postcount'], next);
},
- async.apply(topics.getTeasers),
+ function(_topicData, next) {
+ topicData = _topicData;
+ topics.getTeasers(_topicData, next);
+ },
function (teasers, next) {
teasers.forEach(function(teaser, index) {
if (teaser) {