From 5acd287dbf0534de12dd810b7b7c1d1a7ce9f660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 14 Mar 2024 12:06:38 +0100 Subject: [PATCH] fix: Use lock owner display name on 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/LockController.php b/lib/Controller/LockController.php index e149d7d3..2da85cd8 100644 --- a/lib/Controller/LockController.php +++ b/lib/Controller/LockController.php @@ -150,7 +150,7 @@ private function buildOCSResponse($format, DataResponse $data) { if ($data->getStatus() === Http::STATUS_LOCKED) { /** @var FileLock $lock */ $lock = $data->getData(); - $message = $this->l10n->t('File is currently locked by %s', [$lock->getOwner()]); + $message = $this->l10n->t('File is currently locked by %s', [$lock->getDisplayName()]); } if ($data->getStatus() === Http::STATUS_PRECONDITION_FAILED) { /** @var FileLock $lock */