mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Make list_id parameter mandatory in api/lists/statuses
This commit is contained in:
parent
6401eb988b
commit
5d8d62015c
1 changed files with 3 additions and 0 deletions
|
@ -3355,6 +3355,9 @@ function api_lists_statuses($type)
|
||||||
|
|
||||||
$user_info = api_get_user($a);
|
$user_info = api_get_user($a);
|
||||||
// get last newtork messages
|
// get last newtork messages
|
||||||
|
if (!x($_REQUEST, 'list_id')) {
|
||||||
|
throw new BadRequestException('list_id not specified');
|
||||||
|
}
|
||||||
|
|
||||||
// params
|
// params
|
||||||
$count = (x($_REQUEST, 'count') ? $_REQUEST['count'] : 20);
|
$count = (x($_REQUEST, 'count') ? $_REQUEST['count'] : 20);
|
||||||
|
|
Loading…
Reference in a new issue