From ffe798b494a6c711c0860649c95cf7151be53f31 Mon Sep 17 00:00:00 2001 From: Micheil Smith Date: Sun, 9 Feb 2014 21:33:20 +0000 Subject: [PATCH] Change Feed.forTopic to cap at 25 items, not infinite --- src/feed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/feed.js b/src/feed.js index f8dbb9f107..a3dae77666 100644 --- a/src/feed.js +++ b/src/feed.js @@ -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')); }