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

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2023-11-17 14:06:42 +01:00
parent 3fa43a529b
commit 89094c76cf
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

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