From: Pierre Rudloff Date: Sat, 7 Apr 2018 20:36:54 +0000 (+0200) Subject: Make list_id parameter mandatory in api/lists/statuses X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d8d62015cd0509ab8091fad6381cf793d989526;p=friendica.git Make list_id parameter mandatory in api/lists/statuses --- diff --git a/include/api.php b/include/api.php index c66ce5b9d3..01eb79cd4e 100644 --- a/include/api.php +++ b/include/api.php @@ -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);