Clean up more PonderAnswer cruft

Summary: Ref T2715. Ref T3578. Moves PonderAnswerQuery toward being policy-aware so we can use application PHIDs.

Test Plan: Viewed various Ponder things, voted on answers.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2715, T3578

Differential Revision: https://secure.phabricator.com/D6581
This commit is contained in:
epriestley
2013-07-26 13:13:38 -07:00
parent 7522b45ef2
commit f98ca03d7d
3 changed files with 59 additions and 45 deletions

View File

@@ -25,7 +25,7 @@ final class PonderVoteSaveController extends PonderController {
} else if ($this->kind == "answer") {
$target = id(new PonderAnswerQuery())
->setViewer($user)
->withPHID($phid)
->withPHIDs(array($phid))
->executeOne();
}