diff options
author | Brion Vibber <brion@status.net> | 2010-11-19 14:00:22 -0800 |
---|---|---|
committer | Brion Vibber <brion@status.net> | 2010-11-19 14:00:22 -0800 |
commit | ca55d6c514d4ecadbb7d3fdc4c618dfd9da4a786 (patch) | |
tree | 803caae842b2fb044141154f70a4ddd3c5757f83 /lib | |
parent | 4b01dd8b2ec18c28a49fd8963dd7e31e73b4670b (diff) |
Ticket #1987: support since_id on API notice search methods.
max_id is not yet implemented, as it'll need support added to the search backends. (since_id we get 'for free' by just cropping off the list, it'll do for now)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jsonsearchresultslist.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/jsonsearchresultslist.php b/lib/jsonsearchresultslist.php index 0d72ddf7a..80d4036aa 100644 --- a/lib/jsonsearchresultslist.php +++ b/lib/jsonsearchresultslist.php @@ -101,6 +101,10 @@ class JSONSearchResultsList $this->max_id = (int)$this->notice->id; } + if ($this->since_id && $this->notice->id <= $this->since_id) { + break; + } + if ($cnt > $this->rpp) { break; } |