Change Feed.forTopic to cap at 25 items, not infinite

v1.18.x
Micheil Smith 11 years ago
parent a3bb9f4e3d
commit ffe798b494

@ -16,7 +16,7 @@
};
Feed.forTopic = function (tid, callback) {
topics.getTopicWithPosts(tid, 0, 0, -1, true, function (err, topicData) {
topics.getTopicWithPosts(tid, 0, 0, 25, true, function (err, topicData) {
if (err) {
return callback(new Error('topic-invalid'));
}

Loading…
Cancel
Save