From 89094c76cfe65bd286ec4f169c91d544bc7e9943 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 17 Nov 2023 14:06:42 +0100 Subject: [PATCH] enh(noid): reasonabley limit amount of possible dashboard widget items Signed-off-by: Arthur Schiwon --- apps/dashboard/lib/Controller/DashboardApiController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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{}> * -- 2.39.5