Differential D14841 Diff 35893 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,089 Lines • ▼ Show 20 Lines | 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()) { | ||||
PhabricatorSearchWorker::queueDocumentForIndexing( | PhabricatorSearchWorker::queueDocumentForIndexing( | ||||
$object->getPHID(), | $object->getPHID(), | ||||
$this->getSearchContextParameter($object, $xactions)); | array( | ||||
'transactionPHIDs' => mpull($xactions, 'getPHID'), | |||||
)); | |||||
} | } | ||||
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 1,750 Lines • ▼ Show 20 Lines | /* -( Search Index )------------------------------------------------------- */ | ||||
/** | /** | ||||
* @task search | * @task search | ||||
*/ | */ | ||||
protected function supportsSearch() { | protected function supportsSearch() { | ||||
return false; | return false; | ||||
} | } | ||||
/** | |||||
* @task search | |||||
*/ | |||||
protected function getSearchContextParameter( | |||||
PhabricatorLiskDAO $object, | |||||
array $xactions) { | |||||
return null; | |||||
} | |||||
/* -( Herald Integration )-------------------------------------------------- */ | /* -( Herald Integration )-------------------------------------------------- */ | ||||
protected function shouldApplyHeraldRules( | protected function shouldApplyHeraldRules( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
array $xactions) { | array $xactions) { | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 475 Lines • Show Last 20 Lines |