Differential D16669 Diff 40132 src/applications/conpherence/controller/ConpherenceNotificationPanelController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceNotificationPanelController.php
Show All 12 Lines | $participant_data = id(new ConpherenceParticipantQuery()) | ||||
->withParticipantPHIDs(array($user->getPHID())) | ->withParticipantPHIDs(array($user->getPHID())) | ||||
->setLimit(5) | ->setLimit(5) | ||||
->execute(); | ->execute(); | ||||
if ($participant_data) { | if ($participant_data) { | ||||
$conpherences = id(new ConpherenceThreadQuery()) | $conpherences = id(new ConpherenceThreadQuery()) | ||||
->setViewer($user) | ->setViewer($user) | ||||
->withPHIDs(array_keys($participant_data)) | ->withPHIDs(array_keys($participant_data)) | ||||
->needCropPics(true) | ->needProfileImage(true) | ||||
->needTransactions(true) | ->needTransactions(true) | ||||
->setTransactionLimit(3 * 5) | ->setTransactionLimit(3 * 5) | ||||
->needParticipantCache(true) | ->needParticipantCache(true) | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
if ($conpherences) { | if ($conpherences) { | ||||
// re-order the conpherences based on participation data | // re-order the conpherences based on participation data | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |