]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Inbox.pm
view: avoid offset during pagination
[public-inbox.git] / lib / PublicInbox / Inbox.pm
index 142b5c8949945139f771d28df8ff546d868b8c21..0ea18b4cd986a8add505604a09f8b7533513eab9 100644 (file)
@@ -318,8 +318,8 @@ sub msg_by_mid ($$;$) {
 }
 
 sub recent {
-       my ($self, $opts) = @_;
-       search($self)->query('', $opts);
+       my ($self, $opts, $after, $before) = @_;
+       search($self)->{over_ro}->recent($opts, $after, $before);
 }
 
 1;