mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +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(
|
$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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue