mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:10:12 +00:00
Simply Timeline Home temporal endpoint to reuse min_id and max_id
This commit is contained in:
parent
818075d039
commit
9c5f3ae58f
3 changed files with 14 additions and 18 deletions
|
@ -45,17 +45,15 @@ class Home extends BaseApi
|
|||
$uid = self::getCurrentUserID();
|
||||
|
||||
$request = $this->getRequest([
|
||||
'max_id' => 0, // Return results older than id
|
||||
'max_id' => '0', // Return results older than id
|
||||
'since_id' => 0, // Return results newer than id
|
||||
'min_id' => 0, // Return results immediately newer than id
|
||||
'min_id' => '0', // Return results immediately newer than id
|
||||
'limit' => 20, // Maximum number of results to return. Defaults to 20.
|
||||
'local' => false, // Return only local statuses?
|
||||
'with_muted' => false, // Pleroma extension: return activities by muted (not by blocked!) users.
|
||||
'only_media' => false, // Show only statuses with media attached? Defaults to false.
|
||||
'remote' => false, // Show only remote statuses? Defaults to false.
|
||||
'exclude_replies' => false, // Don't show comments
|
||||
'min_time' => '',
|
||||
'max_time' => '',
|
||||
'friendica_order' => TimelineOrderByTypes::ID,
|
||||
], $request);
|
||||
|
||||
|
@ -91,7 +89,7 @@ class Home extends BaseApi
|
|||
try {
|
||||
$status = DI::mstdnStatus()->createFromUriId($item['uri-id'], $uid, $display_quotes);
|
||||
switch ($request['friendica_order']) {
|
||||
case TimelineOrderByTypes::CREATED_AT:
|
||||
case TimelineOrderByTypes::CREATED:
|
||||
self::setBoundaries($status->createdAtTimestamp());
|
||||
break;
|
||||
case TimelineOrderByTypes::ID:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue