Skip to content

Commit

Permalink
fix: Set displayname for error response
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Apr 2, 2024
1 parent 1b45c58 commit 3dff56b
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 @@ -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) {
Expand Down

0 comments on commit 3dff56b

Please sign in to comment.