mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #29877 from nextcloud/backport/29869/stable23
This commit is contained in:
commit
11be6bf4ec
1 changed files with 9 additions and 7 deletions
|
|
@ -127,13 +127,15 @@ class ProfilePageController extends Controller {
|
|||
}
|
||||
}
|
||||
|
||||
$userStatuses = $this->userStatusManager->getUserStatuses([$targetUserId]);
|
||||
$status = $userStatuses[$targetUserId] ?? null;
|
||||
if ($status !== null) {
|
||||
$this->initialStateService->provideInitialState('status', [
|
||||
'icon' => $status->getIcon(),
|
||||
'message' => $status->getMessage(),
|
||||
]);
|
||||
if ($visitingUser !== null) {
|
||||
$userStatuses = $this->userStatusManager->getUserStatuses([$targetUserId]);
|
||||
$status = $userStatuses[$targetUserId] ?? null;
|
||||
if ($status !== null) {
|
||||
$this->initialStateService->provideInitialState('status', [
|
||||
'icon' => $status->getIcon(),
|
||||
'message' => $status->getMessage(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
$this->initialStateService->provideInitialState(
|
||||
|
|
|
|||
Loading…
Reference in a new issue