From 5d8d62015cd0509ab8091fad6381cf793d989526 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 7 Apr 2018 22:36:54 +0200 Subject: [PATCH] Make list_id parameter mandatory in api/lists/statuses --- include/api.php | 3 +++ 1 file changed, 3 insertions(+) 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);