Differential D14834 Diff 35888 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Show First 20 Lines • Show All 1,087 Lines • ▼ Show 20 Lines | public function publishTransactions( | ||||
$messages = array(); | $messages = array(); | ||||
if (!$this->getDisableEmail()) { | if (!$this->getDisableEmail()) { | ||||
if ($this->shouldSendMail($object, $xactions)) { | if ($this->shouldSendMail($object, $xactions)) { | ||||
$messages = $this->buildMail($object, $xactions); | $messages = $this->buildMail($object, $xactions); | ||||
} | } | ||||
} | } | ||||
if ($this->supportsSearch()) { | if ($this->supportsSearch()) { | ||||
id(new PhabricatorSearchIndexer()) | PhabricatorSearchWorker::queueDocumentForIndexing( | ||||
->queueDocumentForIndexing( | |||||
$object->getPHID(), | $object->getPHID(), | ||||
$this->getSearchContextParameter($object, $xactions)); | $this->getSearchContextParameter($object, $xactions)); | ||||
} | } | ||||
if ($this->shouldPublishFeedStory($object, $xactions)) { | if ($this->shouldPublishFeedStory($object, $xactions)) { | ||||
$mailed = array(); | $mailed = array(); | ||||
foreach ($messages as $mail) { | foreach ($messages as $mail) { | ||||
foreach ($mail->buildRecipientList() as $phid) { | foreach ($mail->buildRecipientList() as $phid) { | ||||
$mailed[$phid] = $phid; | $mailed[$phid] = $phid; | ||||
▲ Show 20 Lines • Show All 2,250 Lines • Show Last 20 Lines |