mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-19 19:09:42 +02:00
Change Feed.forTopic to cap at 25 items, not infinite
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user