Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/mail/DifferentialMail.php
| Show First 20 Lines • Show All 272 Lines • ▼ Show 20 Lines | protected function buildBody() { | ||||
| $body = new PhabricatorMetaMTAMailBody(); | $body = new PhabricatorMetaMTAMailBody(); | ||||
| $body->addRawSection($main_body); | $body->addRawSection($main_body); | ||||
| $reply_handler = $this->getReplyHandler(); | $reply_handler = $this->getReplyHandler(); | ||||
| $body->addReplySection($reply_handler->getReplyHandlerInstructions()); | $body->addReplySection($reply_handler->getReplyHandlerInstructions()); | ||||
| if ($this->getHeraldTranscriptURI() && $this->isFirstMailToRecipients()) { | if ($this->getHeraldTranscriptURI() && $this->isFirstMailToRecipients()) { | ||||
| $manage_uri = '/herald/view/differential/'; | |||||
| $xscript_uri = $this->getHeraldTranscriptURI(); | $xscript_uri = $this->getHeraldTranscriptURI(); | ||||
| $body->addHeraldSection($manage_uri, $xscript_uri); | $body->addHeraldSection($xscript_uri); | ||||
| } | } | ||||
| return $body->render(); | return $body->render(); | ||||
| } | } | ||||
| /** | /** | ||||
| * You can override this method in a subclass and return array of attachments | * You can override this method in a subclass and return array of attachments | ||||
| * to be sent with the email. Each attachment is an instance of | * to be sent with the email. Each attachment is an instance of | ||||
| ▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines | |||||