Differential D21276 Diff 50670 src/applications/differential/editor/DifferentialRevisionEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialRevisionEditEngine.php
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | foreach ($xactions as $xaction) { | ||||
if ($xaction->getTransactionType() === $type_inline) { | if ($xaction->getTransactionType() === $type_inline) { | ||||
$inlines[] = $xaction->getComment(); | $inlines[] = $xaction->getComment(); | ||||
} | } | ||||
} | } | ||||
$content = array(); | $content = array(); | ||||
if ($inlines) { | if ($inlines) { | ||||
// Reload inlines to get inline context. | |||||
$inlines = id(new DifferentialDiffInlineCommentQuery()) | |||||
->setViewer($viewer) | |||||
->withIDs(mpull($inlines, 'getID')) | |||||
->needInlineContext(true) | |||||
->execute(); | |||||
$inline_preview = id(new PHUIDiffInlineCommentPreviewListView()) | $inline_preview = id(new PHUIDiffInlineCommentPreviewListView()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setInlineComments($inlines); | ->setInlineComments($inlines); | ||||
$content[] = phutil_tag( | $content[] = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'id' => 'inline-comment-preview', | 'id' => 'inline-comment-preview', | ||||
Show All 9 Lines |