mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 11:22:40 +01:00
b2320c2e68
Summary: Ref T7094. We already had and were mostly using "needProfileImage" on the people query class. Only real trick in this diff is deleting a conduit end point that has been marked deprecated for the better part of 3 years. Test Plan: clicked around the people action and profiles and calendars loaded nicely. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7094 Differential Revision: https://secure.phabricator.com/D11630
34 lines
886 B
PHP
34 lines
886 B
PHP
<?php
|
|
|
|
final class PhabricatorPeopleLogsController
|
|
extends PhabricatorPeopleController {
|
|
|
|
private $queryKey;
|
|
|
|
public function willProcessRequest(array $data) {
|
|
$this->queryKey = idx($data, 'queryKey');
|
|
}
|
|
|
|
public function processRequest() {
|
|
$controller = id(new PhabricatorApplicationSearchController())
|
|
->setQueryKey($this->queryKey)
|
|
->setSearchEngine(new PhabricatorPeopleLogSearchEngine())
|
|
->setNavigation($this->buildSideNavView());
|
|
|
|
return $this->delegateToController($controller);
|
|
}
|
|
|
|
public function buildSideNavView($for_app = false) {
|
|
$nav = new AphrontSideNavFilterView();
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
$viewer = $this->getRequest()->getUser();
|
|
|
|
id(new PhabricatorPeopleLogSearchEngine())
|
|
->setViewer($viewer)
|
|
->addNavigationItems($nav->getMenu());
|
|
|
|
return $nav;
|
|
}
|
|
|
|
}
|