enh(noid): reasonabley limit amount of possible dashboard widget items

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/41578/head
Arthur Schiwon 3 years ago
parent 3fa43a529b
commit 89094c76cf
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
  1. 3
      apps/dashboard/lib/Controller/DashboardApiController.php

@ -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{}>
*

Loading…
Cancel
Save