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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user