Provide getObjectOwnerPHID() on inline comment views

Summary:
This returns the PHID of the current revision owner, or the commit author, if one exists.

NOTE: For drafts, we currently return `null`; I'll fix that in a future change. Should be correct for submitted comments.

Test Plan: Added an inline, nothing seemed broken.

Reviewers: chad

Reviewed By: chad

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D12185
This commit is contained in:
epriestley
2015-03-27 11:23:10 -07:00
parent 90ccd37a8c
commit 174cf82398
8 changed files with 50 additions and 3 deletions

View File

@@ -95,6 +95,7 @@ final class DiffusionDiffController extends DiffusionController {
$parser->setCanMarkDone(
($commit->getAuthorPHID()) &&
($viewer->getPHID() == $commit->getAuthorPHID()));
$parser->setObjectOwnerPHID($commit->getAuthorPHID());
$parser->setWhitespaceMode(
DifferentialChangesetParser::WHITESPACE_SHOW_ALL);