]> source.dussan.org Git - nextcloud-server.git/commitdiff
enh(noid): reasonabley limit amount of possible dashboard widget items
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 17 Nov 2023 13:06:42 +0000 (14:06 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 24 Nov 2023 11:46:38 +0000 (12:46 +0100)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/dashboard/lib/Controller/DashboardApiController.php

index 35db52225daa61f320dc7de64323bfd62c3b3764..c95979e667dcde392bab49bb6b0c07b3af9d7588 100644 (file)
@@ -127,7 +127,8 @@ class DashboardApiController extends OCSController {
         * Get the items for the widgets
         *
         * @param array<string, string> $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<Http::STATUS_OK, array<string, DashboardWidgetItems>, array{}>
         *