Page MenuHomePhabricator

D19632.id46923.diff
No OneTemporary

D19632.id46923.diff

diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -892,6 +892,17 @@
array $inlines,
PhabricatorMetaMTAMailBody $body) {
+ $limit = 100;
+ $limit_note = null;
+ if (count($inlines) > $limit) {
+ $limit_note = pht(
+ '(Showing first %s of %s inlines.)',
+ $limit,
+ phutil_count($inlines));
+
+ $inlines = array_slice($inlines, 0, $limit, true);
+ }
+
$section = id(new DifferentialInlineCommentMailView())
->setViewer($this->getActor())
->setInlines($inlines)
@@ -900,6 +911,9 @@
$header = pht('INLINE COMMENTS');
$section_text = "\n".$section->getPlaintext();
+ if ($limit_note) {
+ $section_text = $limit_note."\n".$section_text;
+ }
$style = array(
'margin: 6px 0 12px 0;',
@@ -912,6 +926,16 @@
),
$section->getHTML());
+ if ($limit_note) {
+ $section_html = array(
+ phutil_tag(
+ 'em',
+ array(),
+ $limit_note),
+ $section_html,
+ );
+ }
+
$body->addPlaintextSection($header, $section_text, false);
$body->addHTMLSection($header, $section_html);
}

File Metadata

Mime Type
text/plain
Expires
Wed, Jun 26, 1:31 PM (2 d, 16 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6356068
Default Alt Text
D19632.id46923.diff (1 KB)

Event Timeline