Differential D20586 Diff 49112 src/applications/differential/editor/DifferentialTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialTransactionEditor.php
Show First 20 Lines • Show All 595 Lines • ▼ Show 20 Lines | protected function getTransactionsForMail( | ||||
// information into the mail. | // information into the mail. | ||||
if ($this->isFirstBroadcast()) { | if ($this->isFirstBroadcast()) { | ||||
return $this->loadUnbroadcastTransactions($object); | return $this->loadUnbroadcastTransactions($object); | ||||
} | } | ||||
return $xactions; | return $xactions; | ||||
} | } | ||||
protected function getObjectLinkButtonLabelForMail() { | protected function getObjectLinkButtonLabelForMail( | ||||
PhabricatorLiskDAO $object) { | |||||
return pht('View Revision'); | return pht('View Revision'); | ||||
} | } | ||||
protected function buildMailBody( | protected function buildMailBody( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
array $xactions) { | array $xactions) { | ||||
$viewer = $this->requireActor(); | $viewer = $this->requireActor(); | ||||
$body = id(new PhabricatorMetaMTAMailBody()) | $body = id(new PhabricatorMetaMTAMailBody()) | ||||
->setViewer($viewer); | ->setViewer($viewer); | ||||
$revision_uri = $object->getURI(); | $revision_uri = $this->getObjectLinkButtonURIForMail($object); | ||||
$revision_uri = PhabricatorEnv::getProductionURI($revision_uri); | |||||
$new_uri = $revision_uri.'/new/'; | $new_uri = $revision_uri.'/new/'; | ||||
$this->addHeadersAndCommentsToMailBody( | $this->addHeadersAndCommentsToMailBody( | ||||
$body, | $body, | ||||
$xactions, | $xactions, | ||||
$this->getObjectLinkButtonLabelForMail($object), | $this->getObjectLinkButtonLabelForMail($object), | ||||
$revision_uri); | $revision_uri); | ||||
▲ Show 20 Lines • Show All 1,099 Lines • Show Last 20 Lines |