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:
parent
df7f21b4e8
commit
2047483cc0
11 changed files with 11 additions and 11 deletions
|
@ -660,7 +660,7 @@ final class PhabricatorAuditEditor
|
|||
}
|
||||
|
||||
if ($inlines) {
|
||||
$body->addTextSection(
|
||||
$body->addRemarkupSection(
|
||||
pht('INLINE COMMENTS'),
|
||||
$this->renderInlineCommentsForMail($object, $inlines));
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ final class PhabricatorBadgesEditor
|
|||
$body = parent::buildMailBody($object, $xactions);
|
||||
|
||||
if (strlen($description)) {
|
||||
$body->addTextSection(
|
||||
$body->addRemarkupSeciton(
|
||||
pht('BADGE DESCRIPTION'),
|
||||
$object->getDescription());
|
||||
}
|
||||
|
|
|
@ -173,7 +173,7 @@ final class PhabricatorCountdownEditor
|
|||
$description = $object->getDescription();
|
||||
|
||||
if (strlen($description)) {
|
||||
$body->addTextSection(
|
||||
$body->addRemarkupSection(
|
||||
pht('COUNTDOWN DESCRIPTION'),
|
||||
$object->getDescription());
|
||||
}
|
||||
|
|
|
@ -165,7 +165,7 @@ final class DifferentialSummaryField
|
|||
return;
|
||||
}
|
||||
|
||||
$body->addTextSection(pht('REVISION SUMMARY'), $summary);
|
||||
$body->addRemarkupSection(pht('REVISION SUMMARY'), $summary);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -195,7 +195,7 @@ final class DifferentialTestPlanField
|
|||
return;
|
||||
}
|
||||
|
||||
$body->addTextSection(pht('TEST PLAN'), $test_plan);
|
||||
$body->addRemarkupSection(pht('TEST PLAN'), $test_plan);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1212,7 +1212,7 @@ final class DifferentialTransactionEditor
|
|||
}
|
||||
|
||||
if ($inlines) {
|
||||
$body->addTextSection(
|
||||
$body->addRemarkupSection(
|
||||
pht('INLINE COMMENTS'),
|
||||
$this->renderInlineCommentsForMail($object, $inlines));
|
||||
}
|
||||
|
|
|
@ -442,7 +442,7 @@ final class ManiphestTransactionEditor
|
|||
$body = parent::buildMailBody($object, $xactions);
|
||||
|
||||
if ($this->getIsNewObject()) {
|
||||
$body->addTextSection(
|
||||
$body->addRemarkupSection(
|
||||
pht('TASK DESCRIPTION'),
|
||||
$object->getDescription());
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -236,7 +236,7 @@ final class PhabricatorPhurlURLEditor
|
|||
$body = parent::buildMailBody($object, $xactions);
|
||||
|
||||
if (strlen($description)) {
|
||||
$body->addTextSection(
|
||||
$body->addRemarkupSection(
|
||||
pht('URL DESCRIPTION'),
|
||||
$object->getDescription());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -145,7 +145,7 @@ final class PhabricatorSlowvoteEditor
|
|||
$description = $object->getDescription();
|
||||
|
||||
if (strlen($description)) {
|
||||
$body->addTextSection(
|
||||
$body->addRemarkupSection(
|
||||
pht('SLOWVOTE DESCRIPTION'),
|
||||
$object->getDescription());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue