mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-31 00:48:21 +01:00
Partially revert D14511 to fix "INLINE COMMENTS" in mail
Summary: Ref T9845. In Differential, this is not a remarkup block -- it's a mail section. `addTextSection()` has special magic behavior when handed a prebuilt section since D9375. Swapping to `addRemarkupSection()` causes the error in T9845 and renders nothing in the comment section. Even if it were a block of text, it would not be appropriate to add it as remarkup. This would incorrectly render comments in files like `__init__.py`, which are common on Python (the filename would render as "__init__.py"). Okay that's a bad example since it works fine but, uh, a file named `T123` would be no good or whatever. I'll realign T9845 to clean this up and fix it more durably. Test Plan: Sent myself some mail with inline comments, saw them in the mail. Reviewers: joshuaspence, chad Reviewed By: chad Maniphest Tasks: T9845 Differential Revision: https://secure.phabricator.com/D14589
This commit is contained in:
parent
5eada3d89c
commit
0d01dab5a3
2 changed files with 2 additions and 2 deletions
|
@ -660,7 +660,7 @@ final class PhabricatorAuditEditor
|
|||
}
|
||||
|
||||
if ($inlines) {
|
||||
$body->addRemarkupSection(
|
||||
$body->addTextSection(
|
||||
pht('INLINE COMMENTS'),
|
||||
$this->renderInlineCommentsForMail($object, $inlines));
|
||||
}
|
||||
|
|
|
@ -1212,7 +1212,7 @@ final class DifferentialTransactionEditor
|
|||
}
|
||||
|
||||
if ($inlines) {
|
||||
$body->addRemarkupSection(
|
||||
$body->addTextSection(
|
||||
pht('INLINE COMMENTS'),
|
||||
$this->renderInlineCommentsForMail($object, $inlines));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue