1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Render Remarkup in emails

Summary: Ref T992. I noticed that `ManiphestTask` mail doesn't render Remarkup properly (instead, it renders Remarkup literally). I //think// this is because the code calls `addTextSection()` rather than `addRemarkupSection()`.

Test Plan: Created a new Maniphest Task and saw Remarkup in the generated self-email (inspect the email contents with `./bin/mail show-outbound`). I didn't test the other affected applications.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T992

Differential Revision: https://secure.phabricator.com/D14511
This commit is contained in:
Joshua Spence 2015-11-24 06:43:00 +11:00
parent df7f21b4e8
commit 2047483cc0
11 changed files with 11 additions and 11 deletions

View file

@ -660,7 +660,7 @@ final class PhabricatorAuditEditor
}
if ($inlines) {
$body->addTextSection(
$body->addRemarkupSection(
pht('INLINE COMMENTS'),
$this->renderInlineCommentsForMail($object, $inlines));
}

View file

@ -194,7 +194,7 @@ final class PhabricatorBadgesEditor
$body = parent::buildMailBody($object, $xactions);
if (strlen($description)) {
$body->addTextSection(
$body->addRemarkupSeciton(
pht('BADGE DESCRIPTION'),
$object->getDescription());
}

View file

@ -173,7 +173,7 @@ final class PhabricatorCountdownEditor
$description = $object->getDescription();
if (strlen($description)) {
$body->addTextSection(
$body->addRemarkupSection(
pht('COUNTDOWN DESCRIPTION'),
$object->getDescription());
}

View file

@ -165,7 +165,7 @@ final class DifferentialSummaryField
return;
}
$body->addTextSection(pht('REVISION SUMMARY'), $summary);
$body->addRemarkupSection(pht('REVISION SUMMARY'), $summary);
}
}

View file

@ -195,7 +195,7 @@ final class DifferentialTestPlanField
return;
}
$body->addTextSection(pht('TEST PLAN'), $test_plan);
$body->addRemarkupSection(pht('TEST PLAN'), $test_plan);
}

View file

@ -1212,7 +1212,7 @@ final class DifferentialTransactionEditor
}
if ($inlines) {
$body->addTextSection(
$body->addRemarkupSection(
pht('INLINE COMMENTS'),
$this->renderInlineCommentsForMail($object, $inlines));
}

View file

@ -442,7 +442,7 @@ final class ManiphestTransactionEditor
$body = parent::buildMailBody($object, $xactions);
if ($this->getIsNewObject()) {
$body->addTextSection(
$body->addRemarkupSection(
pht('TASK DESCRIPTION'),
$object->getDescription());
}

View file

@ -419,7 +419,7 @@ final class PhrictionTransactionEditor
$body = parent::buildMailBody($object, $xactions);
if ($this->getIsNewObject()) {
$body->addTextSection(
$body->addRemarkupSection(
pht('DOCUMENT CONTENT'),
$object->getContent()->getContent());
} else if ($this->contentDiffURI) {

View file

@ -236,7 +236,7 @@ final class PhabricatorPhurlURLEditor
$body = parent::buildMailBody($object, $xactions);
if (strlen($description)) {
$body->addTextSection(
$body->addRemarkupSection(
pht('URL DESCRIPTION'),
$object->getDescription());
}

View file

@ -249,7 +249,7 @@ final class ReleephRequestTransactionalEditor
if ($has_pick_failure) {
$instructions = $releeph_project->getDetail('pick_failure_instructions');
if ($instructions) {
$body->addTextSection(
$body->addRemarkupSection(
pht('PICK FAILURE INSTRUCTIONS'),
$instructions);
}

View file

@ -145,7 +145,7 @@ final class PhabricatorSlowvoteEditor
$description = $object->getDescription();
if (strlen($description)) {
$body->addTextSection(
$body->addRemarkupSection(
pht('SLOWVOTE DESCRIPTION'),
$object->getDescription());
}