]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
update copyrights for 2021
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 4dd584d3478a2e2371be75de2375ac50793fc489..b2219dad9955005c2cb97d0fe3d47b710d617837 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2013-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 #
 # Used for generating Atom feeds for web-accessible mailing list archives.
@@ -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