Skip to content

Commit

Permalink
enh(noid): reasonabley limit amount of possible dashboard widget items
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Nov 17, 2023
1 parent 3f84e29 commit ef053b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dashboard/lib/Controller/DashboardApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ public function getWidgetItems(array $sinceIds = [], int $limit = 7, array $widg
* 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<0, 30> $limit
* @param string[] $widgets Limit results to specific widgets
* @return DataResponse<Http::STATUS_OK, array<string, DashboardWidgetItems>, array{}>
*
Expand Down

0 comments on commit ef053b4

Please sign in to comment.