Standards
This commit is contained in:
parent
d128b723c0
commit
a3e3d87a42
|
@ -37,17 +37,17 @@ class Incoming extends ContactEndpoint
|
||||||
$uid = BaseApi::getCurrentUserID();
|
$uid = BaseApi::getCurrentUserID();
|
||||||
|
|
||||||
// Expected value for user_id parameter: public/user contact id
|
// Expected value for user_id parameter: public/user contact id
|
||||||
$cursor = filter_input(INPUT_GET, 'cursor' , FILTER_VALIDATE_INT, ['options' => ['default' => -1]]);
|
$cursor = filter_input(INPUT_GET, 'cursor' , FILTER_VALIDATE_INT, ['options' => ['default' => -1]]);
|
||||||
$stringify_ids = filter_input(INPUT_GET, 'stringify_ids', FILTER_VALIDATE_BOOLEAN, ['options' => ['default' => false]]);
|
$stringify_ids = filter_input(INPUT_GET, 'stringify_ids', FILTER_VALIDATE_BOOLEAN, ['options' => ['default' => false]]);
|
||||||
$count = filter_input(INPUT_GET, 'count' , FILTER_VALIDATE_INT, ['options' => [
|
$count = filter_input(INPUT_GET, 'count' , FILTER_VALIDATE_INT, ['options' => [
|
||||||
'default' => self::DEFAULT_COUNT,
|
'default' => self::DEFAULT_COUNT,
|
||||||
'min_range' => 1,
|
'min_range' => 1,
|
||||||
'max_range' => self::MAX_COUNT,
|
'max_range' => self::MAX_COUNT,
|
||||||
]]);
|
]]);
|
||||||
// Friendica-specific
|
// Friendica-specific
|
||||||
$since_id = filter_input(INPUT_GET, 'since_id', FILTER_VALIDATE_INT);
|
$since_id = filter_input(INPUT_GET, 'since_id', FILTER_VALIDATE_INT);
|
||||||
$max_id = filter_input(INPUT_GET, 'max_id' , FILTER_VALIDATE_INT);
|
$max_id = filter_input(INPUT_GET, 'max_id' , FILTER_VALIDATE_INT);
|
||||||
$min_id = filter_input(INPUT_GET, 'min_id' , FILTER_VALIDATE_INT);
|
$min_id = filter_input(INPUT_GET, 'min_id' , FILTER_VALIDATE_INT);
|
||||||
|
|
||||||
$params = ['order' => ['cid' => true], 'limit' => $count];
|
$params = ['order' => ['cid' => true], 'limit' => $count];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue