Standards
This commit is contained in:
parent
556bcfe78f
commit
299d70ca1d
2 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@ use Friendica\DI;
|
||||||
* returns a 401 status code and an error message if not.
|
* returns a 401 status code and an error message if not.
|
||||||
*
|
*
|
||||||
* @see https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials
|
* @see https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials
|
||||||
*/
|
*/
|
||||||
class VerifyCredentials extends BaseApi
|
class VerifyCredentials extends BaseApi
|
||||||
{
|
{
|
||||||
public function rawContent()
|
public function rawContent()
|
||||||
|
|
|
@ -42,10 +42,10 @@ class Mentions extends BaseApi
|
||||||
// get last network messages
|
// get last network messages
|
||||||
|
|
||||||
// params
|
// params
|
||||||
$since_id = intval($_REQUEST['since_id'] ?? 0);
|
$since_id = $_REQUEST['since_id'] ?? 0;
|
||||||
$max_id = intval($_REQUEST['max_id'] ?? 0);
|
$max_id = $_REQUEST['max_id'] ?? 0;
|
||||||
$count = intval($_REQUEST['count'] ?? 20);
|
$count = $_REQUEST['count'] ?? 20;
|
||||||
$page = intval($_REQUEST['page'] ?? 1);
|
$page = $_REQUEST['page'] ?? 1;
|
||||||
|
|
||||||
$start = max(0, ($page - 1) * $count);
|
$start = max(0, ($page - 1) * $count);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue