diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-15 18:43:15 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-10-19 18:25:06 +0200 |
commit | f8e55b158c43a7d63f0fcea483579da091bba00b (patch) | |
tree | 5f09482232dda047cb6701bad58d8f94b6606363 /lib | |
parent | 173b7680386f1b558506095535bd7f33582661b6 (diff) |
allow setting min and max id in timeline request
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/ApiController.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 1b4be8a7..a0b7bc0a 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -261,14 +261,17 @@ class ApiController extends Controller { * * @param string $timeline * @param int $limit - * + * @param int $max_id + * @param int $min_id * @return DataResponse */ - public function timelines(string $timeline, int $limit = 20): DataResponse { + public function timelines(string $timeline, int $limit = 20, int $max_id = 0, int $min_id = 0): DataResponse { $options = new TimelineOptions($this->request); $options->setFormat(Stream::FORMAT_LOCAL); $options->setTimeline($timeline); $options->setLimit($limit); + $options->setMaxId($max_id); + $options->setMinId($min_id); try { $this->initViewer(true); |