diff options
author | Jonas <jonas@freesources.org> | 2024-12-11 15:45:52 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-12-16 15:52:05 +0000 |
commit | 3737727a044cb72d6e70364f7af16e4f4643fdb7 (patch) | |
tree | 8836f3f18de5af10710563cd55089632a572441d | |
parent | 35c0ed11998e273c812a1a6ecd26ac7b7fb7d281 (diff) | |
download | nextcloud-server-3737727a044cb72d6e70364f7af16e4f4643fdb7.tar.gz nextcloud-server-3737727a044cb72d6e70364f7af16e4f4643fdb7.zip |
fix(ReferenceApiController): Bump rate limit for public resolve endpointbackport/49801/stable30
E.g. text documents might contain hundreds of links whose previews need
to get loaded.
Fixes: nextcloud/collectives#1607
Signed-off-by: Jonas <jonas@freesources.org>
-rw-r--r-- | core/Controller/ReferenceApiController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/ReferenceApiController.php b/core/Controller/ReferenceApiController.php index cba91b976e2..2ba99b0cc7b 100644 --- a/core/Controller/ReferenceApiController.php +++ b/core/Controller/ReferenceApiController.php @@ -128,7 +128,7 @@ class ReferenceApiController extends \OCP\AppFramework\OCSController { */ #[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(); |