From: Arthur Schiwon Date: Fri, 17 Nov 2023 13:06:42 +0000 (+0100) Subject: enh(noid): reasonabley limit amount of possible dashboard widget items X-Git-Tag: v29.0.0beta1~784^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=89094c76cfe65bd286ec4f169c91d544bc7e9943;p=nextcloud-server.git enh(noid): reasonabley limit amount of possible dashboard widget items Signed-off-by: Arthur Schiwon --- diff --git a/apps/dashboard/lib/Controller/DashboardApiController.php b/apps/dashboard/lib/Controller/DashboardApiController.php index 35db52225da..c95979e667d 100644 --- a/apps/dashboard/lib/Controller/DashboardApiController.php +++ b/apps/dashboard/lib/Controller/DashboardApiController.php @@ -127,7 +127,8 @@ class DashboardApiController extends OCSController { * Get the items for the widgets * * @param array $sinceIds Array indexed by widget Ids, contains date/id from which we want the new items - * @param int $limit Limit number of result items per widget + * @param int $limit Limit number of result items per widget, not more than 30 are allowed + * @psalm-param int<1, 30> $limit * @param string[] $widgets Limit results to specific widgets * @return DataResponse, array{}> *