mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Also throttle on expiration
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
9b204649e4
commit
edb64b193c
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue