mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 08:38:11 -04:00
Merge pull request #29869 from nextcloud/fix/28139/hide-status-from-public
Hide user status on profile from public
This commit is contained in:
commit
70f9e5e37d
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