1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Display revision author if there is no diff author

Summary: Occurs for very old diffs.

Test Plan: Display revision with previously **An Unknown Object** author.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin

Differential Revision: https://secure.phabricator.com/D2645
This commit is contained in:
vrana 2012-06-01 17:42:05 -07:00
parent fd10bcea48
commit 7978264862

View file

@ -378,8 +378,12 @@ final class DifferentialRevisionViewController extends DifferentialController {
DifferentialRevision $revision, DifferentialRevision $revision,
DifferentialDiff $diff) { DifferentialDiff $diff) {
$author_phid = nonempty(
$diff->getAuthorPHID(),
$revision->getAuthorPHID());
$template = new DifferentialComment(); $template = new DifferentialComment();
$template->setAuthorPHID($diff->getAuthorPHID()); $template->setAuthorPHID($author_phid);
$template->setRevisionID($revision->getID()); $template->setRevisionID($revision->getID());
$template->setDateCreated($revision->getDateCreated()); $template->setDateCreated($revision->getDateCreated());