about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-03 11:09:09 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-03 12:06:13 +0000
commitb9534449ecce2c59bb4aebad6051f91c3116b187 (patch)
treeb355db7453fb8916a8b480d35b2ea8fccee78844 /lib/PublicInbox/Inbox.pm
parentf91753f00b760c0e06eb0384792e5b18bd99bb0f (diff)
downloadpublic-inbox-b9534449ecce2c59bb4aebad6051f91c3116b187.tar.gz
OFFSET in SQLite gets painful to deal with.  Instead,
rely on timestamps (from Received:) for pagination.
This also sets us up for more precise Date searching
in case we want it.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 142b5c89..0ea18b4c 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -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;