Clean up more PonderQuestionQuery cruft

Summary: Ref T3578. Unroll these static methods for consistency.

Test Plan: grep

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3578

Differential Revision: https://secure.phabricator.com/D6602
This commit is contained in:
epriestley
2013-07-28 15:38:47 -07:00
parent 5a3e3994f5
commit e6967ed2ec
6 changed files with 34 additions and 44 deletions

View File

@@ -13,7 +13,10 @@ final class PonderQuestionViewController extends PonderController {
$request = $this->getRequest();
$user = $request->getUser();
$question = PonderQuestionQuery::loadSingle($user, $this->questionID);
$question = id(new PonderQuestionQuery())
->setViewer($user)
->withIDs(array($this->questionID))
->executeOne();
if (!$question) {
return new Aphront404Response();
}