Also throttle on expiration

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/34559/head
Joas Schilling 2 years ago
parent 9b204649e4
commit edb64b193c
No known key found for this signature in database
GPG Key ID: C400AAF20C1BB6FC

@ -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([

Loading…
Cancel
Save