Make list_id parameter mandatory in api/lists/statuses

2022.09-rc
Pierre Rudloff 2018-04-07 22:36:54 +02:00
rodzic 6401eb988b
commit 5d8d62015c
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -3355,6 +3355,9 @@ function api_lists_statuses($type)
$user_info = api_get_user($a);
// get last newtork messages
if (!x($_REQUEST, 'list_id')) {
throw new BadRequestException('list_id not specified');
}
// params
$count = (x($_REQUEST, 'count') ? $_REQUEST['count'] : 20);