send the display name back after a federated share was received
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
27814127dd
commit
22d9246134
|
@ -186,8 +186,14 @@ class RequestHandlerController extends Controller {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user = $this->userManager->get($shareWithLocalId);
|
||||||
|
$recipientDisplayName = '';
|
||||||
|
if($user) {
|
||||||
|
$recipientDisplayName = $user->getDisplayName();
|
||||||
|
}
|
||||||
|
|
||||||
return new JSONResponse(
|
return new JSONResponse(
|
||||||
['id' => $id, 'createdAt' => time()],
|
['recipientDisplayName' => $recipientDisplayName],
|
||||||
Http::STATUS_CREATED);
|
Http::STATUS_CREATED);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue