From 956de07e699392b4cea1bbea32b9c5c4dcddad8c 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 2c2dd9c2..976ab8e1 100644 --- a/lib/Controller/LockController.php +++ b/lib/Controller/LockController.php @@ -153,7 +153,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 */