Cover redirects to files in more cases

Summary: Ref T5894. We have a couple more similar cases. Make them all do a decision-based redirect for now.

Test Plan: Did "View Raw File" and such, and also made sure thumbnails still work.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T5894

Differential Revision: https://secure.phabricator.com/D10301
This commit is contained in:
epriestley
2014-08-19 15:53:15 -07:00
parent eacfb5b489
commit 94cdddc211
7 changed files with 25 additions and 20 deletions

View File

@@ -347,8 +347,7 @@ final class DifferentialChangesetViewController extends DifferentialController {
unset($unguard);
}
return id(new AphrontRedirectResponse())
->setURI($file->getBestURI());
return $file->getRedirectResponse();
}
private function buildLintInlineComments($changeset) {