Skip to content

Node.js based forum software built for the modern web

more fixes

barisusakli2c527cdfeb5a
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);