Node.js based forum software built for the modern web
get teasers: probably faster, hopefully
psychobunnyb5c7473c953b
diff --git a/src/messaging.js b/src/messaging.jsindex 6f3827a723..ab27543f96 100644--- a/src/messaging.js+++ b/src/messaging.js@@ -256,14 +256,14 @@ var db = require('./database'),},teasers: function(next) {var teasers = [];- async.eachSeries(uids, function(fromuid, next) {+ async.each(uids, function(fromuid, next) {Messaging.getMessages({fromuid: fromuid,touid: uid,isNew: false,count: 1}, function(err, teaser) {- teasers.push(teaser[0]);+ teasers[uids.indexOf(fromuid)] = teaser[0];next(err);});}, function(err) {