Differential D21157 Diff 50374 src/applications/differential/mail/DifferentialInlineCommentMailView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/mail/DifferentialInlineCommentMailView.php
Show First 20 Lines • Show All 344 Lines • ▼ Show 20 Lines | if ($is_new) { | ||||
$offset_mode = 'old'; | $offset_mode = 'old'; | ||||
} | } | ||||
// See PHI894. Use the parse cache since we can end up with a large | // See PHI894. Use the parse cache since we can end up with a large | ||||
// rendering cost otherwise when users or bots leave hundreds of inline | // rendering cost otherwise when users or bots leave hundreds of inline | ||||
// comments on diffs with long recipient lists. | // comments on diffs with long recipient lists. | ||||
$cache_key = $changeset->getID(); | $cache_key = $changeset->getID(); | ||||
$viewstate = new PhabricatorChangesetViewState(); | |||||
$parser = id(new DifferentialChangesetParser()) | $parser = id(new DifferentialChangesetParser()) | ||||
->setRenderCacheKey($cache_key) | ->setRenderCacheKey($cache_key) | ||||
->setUser($viewer) | ->setViewer($viewer) | ||||
->setViewstate($viewstate) | |||||
->setChangeset($changeset) | ->setChangeset($changeset) | ||||
->setOffsetMode($offset_mode) | ->setOffsetMode($offset_mode) | ||||
->setMarkupEngine($engine); | ->setMarkupEngine($engine); | ||||
$parser->setRenderer(new DifferentialChangesetOneUpMailRenderer()); | $parser->setRenderer(new DifferentialChangesetOneUpMailRenderer()); | ||||
return $parser->render( | return $parser->render( | ||||
$start - $context, | $start - $context, | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |