From 2c527cdfeb5acbdc41e79911418824a3ac531f26 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 9 Feb 2017 14:38:06 +0300 Subject: [PATCH] more fixes --- src/topics/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/topics/posts.js b/src/topics/posts.js index 0a5fc4c671..37ea83b2cf 100644 --- a/src/topics/posts.js +++ b/src/topics/posts.js @@ -389,10 +389,10 @@ module.exports = function (Topics) { }; function getPostReplies(pids, callerUid, callback) { - var count = 0; - var replyPids; async.map(pids, function (pid, _next) { + var replyPids; var uids = []; + var count = 0; async.waterfall([ function (next) { db.getSortedSetRange('pid:' + pid + ':replies', 0, -1, next);