From 3737727a044cb72d6e70364f7af16e4f4643fdb7 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 11 Dec 2024 15:45:52 +0100 Subject: [PATCH] fix(ReferenceApiController): Bump rate limit for public resolve endpoint E.g. text documents might contain hundreds of links whose previews need to get loaded. Fixes: nextcloud/collectives#1607 Signed-off-by: Jonas --- core/Controller/ReferenceApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Controller/ReferenceApiController.php b/core/Controller/ReferenceApiController.php index cba91b976e261..2ba99b0cc7b83 100644 --- a/core/Controller/ReferenceApiController.php +++ b/core/Controller/ReferenceApiController.php @@ -128,7 +128,7 @@ public function resolveOne(string $reference): DataResponse { */ #[ApiRoute(verb: 'GET', url: '/resolvePublic', root: '/references')] #[PublicPage] - #[AnonRateLimit(limit: 10, period: 120)] + #[AnonRateLimit(limit: 25, period: 120)] public function resolveOnePublic(string $reference, string $sharingToken): DataResponse { /** @var ?CoreReference $resolvedReference */ $resolvedReference = $this->referenceManager->resolveReference(trim($reference), true, trim($sharingToken))?->jsonSerialize();