]> git.mxchange.org Git - friendica.git/commitdiff
Make list_id parameter mandatory in api/lists/statuses
authorPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 20:36:54 +0000 (22:36 +0200)
committerPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 20:36:54 +0000 (22:36 +0200)
include/api.php

index c66ce5b9d32c423835a3a00cbe221309b190f8cc..01eb79cd4e49c31e0f774f96ba7c3630d37c565e 100644 (file)
@@ -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);