mirror of
https://github.com/nextcloud/server.git
synced 2026-04-08 18:46:28 -04:00
fix(comments): Put a limit to the limit
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7a0093c163
commit
af33953078
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