about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index f2285a68..2f59f8c2 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -114,7 +114,7 @@ sub recent_msgs {
                 my $o = $qp ? $qp->{o} : 0;
                 $o += 0;
                 $o = 0 if $o < 0;
-                my $res = $srch->query('', { limit => $max, offset => $o });
+                my $res = $ibx->recent({ limit => $max, offset => $o });
                 my $next = $o + $max;
                 $ctx->{next_page} = "o=$next" if $res->{total} >= $next;
                 return $res->{msgs};