Make Differential use viewer's token instead of viewer() token again

Summary: Ref T4100. This restores the simpler behavior. See discussion in T4100#107445

Test Plan: Used Differential search, saw my token.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4100

Differential Revision: https://secure.phabricator.com/D12447
This commit is contained in:
epriestley
2015-04-17 07:55:17 -07:00
parent 76448a75de
commit ea97d75a67
2 changed files with 83 additions and 65 deletions

View File

@@ -212,7 +212,7 @@ final class DifferentialRevisionSearchEngine
switch ($query_key) {
case 'active':
return $query
->setParameter('responsiblePHIDs', array('viewer()'))
->setParameter('responsiblePHIDs', array($viewer->getPHID()))
->setParameter('status', DifferentialRevisionQuery::STATUS_OPEN);
case 'authored':
return $query