Skip to content

Commit 793d487

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
fix: Set displayname for error response
Signed-off-by: Julius Härtl <[email protected]>
1 parent 3caafe1 commit 793d487

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Controller/LockController.php

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ private function buildOCSResponse($format, DataResponse $data) {
153153
if ($data->getStatus() === Http::STATUS_LOCKED) {
154154
/** @var FileLock $lock */
155155
$lock = $data->getData();
156+
$this->lockService->injectMetadata($lock);
156157
$message = $this->l10n->t('File is currently locked by %s', [$lock->getDisplayName()]);
157158
}
158159
if ($data->getStatus() === Http::STATUS_PRECONDITION_FAILED) {

0 commit comments

Comments
 (0)