Make list_id parameter mandatory in api/lists/statuses

This commit is contained in:
Pierre Rudloff 2018-04-07 22:36:54 +02:00
parent 6401eb988b
commit 5d8d62015c

View File

@ -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);