]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
PublicInbox::Feed owns `feedmax' default value
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 4dd584d3478a2e2371be75de2375ac50793fc489..f570a25da560ded94d9a247e1b9fb23208a01865 100644 (file)
@@ -80,7 +80,7 @@ sub _no_thread () {
 sub recent_msgs {
        my ($ctx) = @_;
        my $ibx = $ctx->{ibx};
-       my $max = $ibx->{feedmax};
+       my $max = $ibx->{feedmax} // 25;
        return PublicInbox::View::paginate_recent($ctx, $max) if $ibx->over;
 
        # only for rare v1 inboxes which aren't indexed at all