Differential D16669 Diff 40132 src/applications/conpherence/controller/ConpherenceListController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceListController.php
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | final class ConpherenceListController extends ConpherenceController { | ||||
private function loadConpherenceThreadData($participation) { | private function loadConpherenceThreadData($participation) { | ||||
$user = $this->getRequest()->getUser(); | $user = $this->getRequest()->getUser(); | ||||
$conpherence_phids = array_keys($participation); | $conpherence_phids = array_keys($participation); | ||||
$conpherences = array(); | $conpherences = array(); | ||||
if ($conpherence_phids) { | if ($conpherence_phids) { | ||||
$conpherences = id(new ConpherenceThreadQuery()) | $conpherences = id(new ConpherenceThreadQuery()) | ||||
->setViewer($user) | ->setViewer($user) | ||||
->withPHIDs($conpherence_phids) | ->withPHIDs($conpherence_phids) | ||||
->needCropPics(true) | ->needProfileImage(true) | ||||
->needParticipantCache(true) | ->needParticipantCache(true) | ||||
->execute(); | ->execute(); | ||||
// this will re-sort by participation data | // this will re-sort by participation data | ||||
$conpherences = array_select_keys($conpherences, $conpherence_phids); | $conpherences = array_select_keys($conpherences, $conpherence_phids); | ||||
} | } | ||||
return $conpherences; | return $conpherences; | ||||
} | } | ||||
} | } |