1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 20:40:56 +01:00

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
This commit is contained in:
Bob Trahan 2012-05-19 17:00:17 -07:00
parent 7c42ade617
commit de1973b516

View file

@ -130,7 +130,7 @@ final class PhabricatorPeopleProfileController
$statuses = id(new PhabricatorUserStatus())->loadCurrentStatuses( $statuses = id(new PhabricatorUserStatus())->loadCurrentStatuses(
array($user->getPHID())); array($user->getPHID()));
if ($statuses) { if ($statuses) {
$header->setStatus(reset($statuses)->getStatusDescription()); $header->setStatus(reset($statuses)->getStatusDescription($viewer));
} }
} }