Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/query/PonderAnswerQuery.php
| Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | if ($this->needViewerVotes) { | ||||
| ->withEdgeTypes(array($etype)) | ->withEdgeTypes(array($etype)) | ||||
| ->needEdgeData(true) | ->needEdgeData(true) | ||||
| ->execute(); | ->execute(); | ||||
| foreach ($answers as $answer) { | foreach ($answers as $answer) { | ||||
| $user_edge = idx( | $user_edge = idx( | ||||
| $edges[$answer->getPHID()][$etype], | $edges[$answer->getPHID()][$etype], | ||||
| $viewer_phid, | $viewer_phid, | ||||
| array()); | array()); | ||||
| $answer->attachUserVote($viewer_phid, idx($user_edge, 'data', 0)); | $answer->attachUserVote($viewer_phid, idx($user_edge, 'data', 0)); | ||||
| } | } | ||||
| } | } | ||||
| return $answers; | return $answers; | ||||
| } | } | ||||
| public function getQueryApplicationClass() { | public function getQueryApplicationClass() { | ||||
| return 'PhabricatorPonderApplication'; | return 'PhabricatorPonderApplication'; | ||||
| } | } | ||||
| } | } | ||||