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 */