Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionDiffController.php
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$parser->setLeftSideCommentMapping($path_id, false); | $parser->setLeftSideCommentMapping($path_id, false); | ||||
$parser->setRightSideCommentMapping($path_id, true); | $parser->setRightSideCommentMapping($path_id, true); | ||||
$parser->setCanMarkDone( | $parser->setCanMarkDone( | ||||
($commit->getAuthorPHID()) && | ($commit->getAuthorPHID()) && | ||||
($viewer->getPHID() == $commit->getAuthorPHID())); | ($viewer->getPHID() == $commit->getAuthorPHID())); | ||||
$parser->setObjectOwnerPHID($commit->getAuthorPHID()); | $parser->setObjectOwnerPHID($commit->getAuthorPHID()); | ||||
$parser->setWhitespaceMode( | |||||
DifferentialChangesetParser::WHITESPACE_SHOW_ALL); | |||||
$inlines = PhabricatorAuditInlineComment::loadDraftAndPublishedComments( | $inlines = PhabricatorAuditInlineComment::loadDraftAndPublishedComments( | ||||
$viewer, | $viewer, | ||||
$commit->getPHID(), | $commit->getPHID(), | ||||
$path_id); | $path_id); | ||||
if ($inlines) { | if ($inlines) { | ||||
foreach ($inlines as $inline) { | foreach ($inlines as $inline) { | ||||
$parser->parseInlineComment($inline); | $parser->parseInlineComment($inline); | ||||
Show All 32 Lines |