We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd2dba7 + 7499815 commit af31c47Copy full SHA for af31c47
1 file changed
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