aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-10-12 13:01:19 +0200
committerJoas Schilling <coding@schilljs.com>2022-10-12 13:01:19 +0200
commitedb64b193ce75e827531eedaa90820c9bb6a8054 (patch)
tree6781e099b625778b62ea1c3596f3ce5b844122fc /apps/files/lib
parent9b204649e4c9ed98b27aa0b3f323b7d244843702 (diff)
downloadnextcloud-server-edb64b193ce75e827531eedaa90820c9bb6a8054.tar.gz
nextcloud-server-edb64b193ce75e827531eedaa90820c9bb6a8054.zip
Also throttle on expiration
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Controller/OpenLocalEditorController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/OpenLocalEditorController.php b/apps/files/lib/Controller/OpenLocalEditorController.php
index ad6783a3cb2..7d784196361 100644
--- a/apps/files/lib/Controller/OpenLocalEditorController.php
+++ b/apps/files/lib/Controller/OpenLocalEditorController.php
@@ -122,7 +122,9 @@ class OpenLocalEditorController extends OCSController {
$this->mapper->delete($entity);
if ($entity->getExpirationTime() <= $this->timeFactory->getTime()) {
- return new DataResponse([], Http::STATUS_NOT_FOUND);
+ $response = new DataResponse([], Http::STATUS_NOT_FOUND);
+ $response->throttle(['userId' => $this->userId, 'pathHash' => $pathHash]);
+ return $response;
}
return new DataResponse([