mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
Display 'away until' in owners and revision comment
Summary: It would be best to add this everywhere at once but I'm too lazy for it. Test Plan: Displayed package list and detail and revision comment with away users. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3419
This commit is contained in:
parent
2ea5c0bdda
commit
ada5f81614
3 changed files with 10 additions and 3 deletions
|
@ -60,6 +60,7 @@ final class DifferentialCommentPreviewController
|
||||||
}
|
}
|
||||||
|
|
||||||
$handles = id(new PhabricatorObjectHandleData($handles))
|
$handles = id(new PhabricatorObjectHandleData($handles))
|
||||||
|
->setViewer($request->getUser())
|
||||||
->loadHandles();
|
->loadHandles();
|
||||||
|
|
||||||
$view = new DifferentialRevisionCommentView();
|
$view = new DifferentialRevisionCommentView();
|
||||||
|
|
|
@ -59,7 +59,9 @@ final class PhabricatorOwnersDetailController
|
||||||
}
|
}
|
||||||
$phids = array_keys($phids);
|
$phids = array_keys($phids);
|
||||||
|
|
||||||
$handles = id(new PhabricatorObjectHandleData($phids))->loadHandles();
|
$handles = id(new PhabricatorObjectHandleData($phids))
|
||||||
|
->setViewer($this->getRequest()->getUser())
|
||||||
|
->loadHandles();
|
||||||
|
|
||||||
$rows = array();
|
$rows = array();
|
||||||
|
|
||||||
|
@ -214,7 +216,9 @@ final class PhabricatorOwnersDetailController
|
||||||
$phids[] = $commit_view['view']->getRequiredHandlePHIDs();
|
$phids[] = $commit_view['view']->getRequiredHandlePHIDs();
|
||||||
}
|
}
|
||||||
$phids = array_mergev($phids);
|
$phids = array_mergev($phids);
|
||||||
$handles = id(new PhabricatorObjectHandleData($phids))->loadHandles();
|
$handles = id(new PhabricatorObjectHandleData($phids))
|
||||||
|
->setViewer($user)
|
||||||
|
->loadHandles();
|
||||||
|
|
||||||
$commit_panels = array();
|
$commit_panels = array();
|
||||||
foreach ($commit_views as $commit_view) {
|
foreach ($commit_views as $commit_view) {
|
||||||
|
|
|
@ -222,7 +222,9 @@ final class PhabricatorOwnersListController
|
||||||
$phids[$owner->getUserPHID()] = true;
|
$phids[$owner->getUserPHID()] = true;
|
||||||
}
|
}
|
||||||
$phids = array_keys($phids);
|
$phids = array_keys($phids);
|
||||||
$handles = id(new PhabricatorObjectHandleData($phids))->loadHandles();
|
$handles = id(new PhabricatorObjectHandleData($phids))
|
||||||
|
->setViewer($this->getRequest()->getUser())
|
||||||
|
->loadHandles();
|
||||||
|
|
||||||
$repository_phids = array();
|
$repository_phids = array();
|
||||||
foreach ($paths as $path) {
|
foreach ($paths as $path) {
|
||||||
|
|
Loading…
Reference in a new issue