Skip to content

Commit

Permalink
Merge pull request #49801 from nextcloud/fix/resolve_public_rate_limit
Browse files Browse the repository at this point in the history
fix(ReferenceApiController): Bump rate limit for public resolve endpoint
  • Loading branch information
mejo- authored Dec 16, 2024
2 parents d399d47 + dd5f560 commit 53c9cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Controller/ReferenceApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 53c9cda

Please sign in to comment.