mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
Some more standards
This commit is contained in:
parent
260ee13d07
commit
556bcfe78f
4 changed files with 14 additions and 14 deletions
|
@ -39,11 +39,11 @@ class NetworkPublicTimeline extends BaseApi
|
|||
$uid = BaseApi::getCurrentUserID();
|
||||
|
||||
$since_id = $_REQUEST['since_id'] ?? 0;
|
||||
$max_id = $_REQUEST['max_id'] ?? 0;
|
||||
$max_id = $_REQUEST['max_id'] ?? 0;
|
||||
|
||||
// pagination
|
||||
$count = $_REQUEST['count'] ?? 20;
|
||||
$page = $_REQUEST['page'] ?? 1;
|
||||
$page = $_REQUEST['page'] ?? 1;
|
||||
|
||||
$start = max(0, ($page - 1) * $count);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue