Differential D17764 Diff 42719 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 83 Lines • ▼ Show 20 Lines | switch ($mode) { | ||||
array($conpherence->getPHID() => $menu_participation) + | array($conpherence->getPHID() => $menu_participation) + | ||||
$all_participation; | $all_participation; | ||||
} | } | ||||
break; | break; | ||||
case self::UNSELECTED_MODE: | case self::UNSELECTED_MODE: | ||||
default: | default: | ||||
$data = $this->loadDefaultParticipation($limit); | $data = $this->loadDefaultParticipation($limit); | ||||
$all_participation = $data['all_participation']; | $all_participation = $data['all_participation']; | ||||
if ($all_participation) { | |||||
$conpherence_id = head($all_participation)->getConpherencePHID(); | $conpherence_id = head($all_participation)->getConpherencePHID(); | ||||
$conpherence = id(new ConpherenceThreadQuery()) | $conpherence = id(new ConpherenceThreadQuery()) | ||||
->setViewer($user) | ->setViewer($user) | ||||
->withPHIDs(array($conpherence_id)) | ->withPHIDs(array($conpherence_id)) | ||||
->needProfileImage(true) | ->needProfileImage(true) | ||||
->executeOne(); | ->executeOne(); | ||||
} | |||||
// If $conpherence is null, NUX state will render | // If $conpherence is null, NUX state will render | ||||
break; | break; | ||||
} | } | ||||
$threads = $this->loadConpherenceThreadData($all_participation); | $threads = $this->loadConpherenceThreadData($all_participation); | ||||
$thread_view = id(new ConpherenceThreadListView()) | $thread_view = id(new ConpherenceThreadListView()) | ||||
->setUser($user) | ->setUser($user) | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |