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:
parent
fd10bcea48
commit
7978264862
1 changed files with 5 additions and 1 deletions
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue