aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJonas <jonas@freesources.org>2024-12-11 15:45:52 +0100
committerJonas <jonas@freesources.org>2024-12-16 13:01:55 +0100
commitdd5f5602461985dea5e46a2f08dbb572fbf78d61 (patch)
treea5f6a740dc0aa56c55a31b51f02d86aa369d867e /core
parent7c59119c03c491f3534021b7011adfebf6e27b19 (diff)
downloadnextcloud-server-dd5f5602461985dea5e46a2f08dbb572fbf78d61.tar.gz
nextcloud-server-dd5f5602461985dea5e46a2f08dbb572fbf78d61.zip
fix(ReferenceApiController): Bump rate limit for public resolve endpointfix/resolve_public_rate_limit
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>
Diffstat (limited to 'core')
-rw-r--r--core/Controller/ReferenceApiController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/ReferenceApiController.php b/core/Controller/ReferenceApiController.php
index 0d34e6244f5..099fdb97194 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();