Skip to content

Commit

Permalink
fix(ReferenceApiController): Bump rate limit for public resolve endpoint
Browse files Browse the repository at this point in the history
E.g. text documents might contain hundreds of links whose previews need
to get loaded.

Fixes: nextcloud/collectives#1607

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Dec 16, 2024
1 parent 7c59119 commit dd5f560
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 dd5f560

Please sign in to comment.