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

This commit is contained in:
Micheil Smith
2014-02-09 21:33:20 +00:00
parent a3bb9f4e3d
commit ffe798b494

View File

@@ -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'));
}