mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
Hide user status from public
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
fd487c1a43
commit
be5b9e36cd
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