diff options
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Controller/OpenLocalEditorController.php | 4 |
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([ |