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:
parent
7c42ade617
commit
de1973b516
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue