]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
feed: optimize query for feeds, too
[public-inbox.git] / lib / PublicInbox / Feed.pm
index f2285a686d22f2a019da6c859d52ff84f860c962..2f59f8c2939b258d0c028c07a323cbb85380fcfb 100644 (file)
@@ -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};