mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #58046 from nextcloud/backport/58043/stable31
[stable31] fix(comments): Put a limit to the limit
This commit is contained in:
commit
f886b27eb2
1 changed files with 1 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ class CommentsPlugin extends ServerPlugin {
|
|||
if (!is_null($args['datetime'])) {
|
||||
$args['datetime'] = new \DateTime((string)$args['datetime']);
|
||||
}
|
||||
$args['limit'] = min(max(1, $args['limit']), 100);
|
||||
|
||||
$results = $node->findChildren($args['limit'], $args['offset'], $args['datetime']);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue