Skip to content

Commit

Permalink
Merge pull request #279 from nextcloud/backport/278/stable27
Browse files Browse the repository at this point in the history
[stable27] fix/error display name
  • Loading branch information
juliusknorr authored Apr 2, 2024
2 parents 3caafe1 + 793d487 commit 7ded76d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/LockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,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) {
Expand Down

0 comments on commit 7ded76d

Please sign in to comment.