diff options
author | Eric Wong <e@80x24.org> | 2020-12-11 20:49:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-14 20:25:23 +0000 |
commit | a80543303720bfe9c1293370ea2cafe98108a141 (patch) | |
tree | ea90e5b84fe6ecd64f92caf7369401c62a9f04a5 /lib/PublicInbox/Feed.pm | |
parent | 4df1904582c4d7bec64e05d1566cd48c8c2e888e (diff) | |
download | public-inbox-a80543303720bfe9c1293370ea2cafe98108a141.tar.gz |
There's no need to have extra code in the Inbox package for this or to waste dozens of bytes for every Inbox object which uses the default value. This makes our code more flexible w.r.t Inbox-like ExtSearch objects and fixes uninitialized value warnings with ->ALL.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 4dd584d3..f570a25d 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -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 |