From de1973b5165abcaffd5ccfdb01b3046af7037944 Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Sat, 19 May 2012 17:00:17 -0700 Subject: [PATCH] fix a small bug from new profile status code stuff Summary: we need a user (the viewer in this case) for the status to render correctly with respect to timezone Test Plan: my profile no longer fatals with an away status Reviewers: davidreuss, vrana CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D2504 --- .../controller/profile/PhabricatorPeopleProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/people/controller/profile/PhabricatorPeopleProfileController.php b/src/applications/people/controller/profile/PhabricatorPeopleProfileController.php index 9a75640020..3a313dfc17 100644 --- a/src/applications/people/controller/profile/PhabricatorPeopleProfileController.php +++ b/src/applications/people/controller/profile/PhabricatorPeopleProfileController.php @@ -130,7 +130,7 @@ final class PhabricatorPeopleProfileController $statuses = id(new PhabricatorUserStatus())->loadCurrentStatuses( array($user->getPHID())); if ($statuses) { - $header->setStatus(reset($statuses)->getStatusDescription()); + $header->setStatus(reset($statuses)->getStatusDescription($viewer)); } }