From 3dff56bbddbf67c68ac93ff7feea7a01b2180a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 2 Apr 2024 09:47:02 +0200 Subject: [PATCH] fix: Set displayname for error response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Controller/LockController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Controller/LockController.php b/lib/Controller/LockController.php index 2da85cd8..c1d35250 100644 --- a/lib/Controller/LockController.php +++ b/lib/Controller/LockController.php @@ -150,6 +150,7 @@ private function buildOCSResponse($format, DataResponse $data) { if ($data->getStatus() === Http::STATUS_LOCKED) { /** @var FileLock $lock */ $lock = $data->getData(); + $this->lockService->injectMetadata($lock); $message = $this->l10n->t('File is currently locked by %s', [$lock->getDisplayName()]); } if ($data->getStatus() === Http::STATUS_PRECONDITION_FAILED) {