added back search limiting

This commit is contained in:
Baris Soner Usakli
2014-01-13 15:45:50 -05:00
parent 3475ed59c8
commit c07bf466b2

View File

@@ -258,6 +258,10 @@ var path = require('path'),
return callback(err, null);
}
if(pids.length > 50) {
pids = pids.splice(0, 50);
}
posts.getPostSummaryByPids(pids, false, function (err, posts) {
if (err){
return callback(err, null);
@@ -273,6 +277,10 @@ var path = require('path'),
return callback(err, null);
}
if(tids.length > 50) {
tids = tids.splice(0, 50);
}
topics.getTopicsByTids(tids, 0, function (topics) {
callback(null, topics);
}, 0);