kopia lustrzana https://github.com/nextcloud/social
allow setting min and max id in timeline request
Signed-off-by: Robin Appelman <robin@icewind.nl>pull/1090/head
rodzic
173b768038
commit
f8e55b158c
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue