We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 01fd051 + 39ab73e commit 72ed55fCopy full SHA for 72ed55f
lib/Service/CommentService.php
@@ -35,6 +35,9 @@ public function __construct(
35
}
36
37
public function list(int $cardId, int $limit = 20, int $offset = 0): DataResponse {
38
+ if ($limit > 200) {
39
+ $limit = 200;
40
+ }
41
$this->permissionService->checkPermission($this->cardMapper, $cardId, Acl::PERMISSION_READ);
42
$comments = $this->commentsManager->getForObject(Application::COMMENT_ENTITY_TYPE, (string)$cardId, $limit, $offset);
43
$result = [];
0 commit comments