Hide user status from public

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/29869/head
Christopher Ng 5 years ago
parent fd487c1a43
commit be5b9e36cd
  1. 16
      core/Controller/ProfilePageController.php

@ -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…
Cancel
Save