We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d8000b commit 89ea449Copy full SHA for 89ea449
1 file changed
lib/Service/CommentService.php
@@ -40,6 +40,9 @@ public function list(string $cardId, int $limit = 20, int $offset = 0): DataResp
40
if (!is_numeric($cardId)) {
41
throw new BadRequestException('A valid card id must be provided');
42
}
43
+ if ($limit > 200) {
44
+ $limit = 200;
45
+ }
46
$this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_READ);
47
$comments = $this->commentsManager->getForObject(Application::COMMENT_ENTITY_TYPE, $cardId, $limit, $offset);
48
$result = [];
0 commit comments