Make jump nav use object name queries
Summary: Cleans up jump nav so it doesn't hard code a bunch of application behaviors. It still hard-codes a few, but few//er//? Test Plan: Jumped to stuff like `D12`, `d`, `@dog`, `p admins only`, etc. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D7196
This commit is contained in:
@@ -76,10 +76,11 @@ final class PhabricatorDirectoryMainController
|
||||
|
||||
private function buildJumpResponse() {
|
||||
$request = $this->getRequest();
|
||||
|
||||
$jump = $request->getStr('jump');
|
||||
|
||||
$response = PhabricatorJumpNavHandler::jumpPostResponse($jump);
|
||||
$response = PhabricatorJumpNavHandler::getJumpResponse(
|
||||
$request->getUser(),
|
||||
$jump);
|
||||
|
||||
if ($response) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user