From 953983983362fbba2d5e21b9399678435dae30f9 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 20 May 2015 09:08:39 -0700 Subject: [PATCH] Show authors as usernames when they're linked Summary: This data is available and loaded, just not used. Test Plan: {F411442} Reviewers: chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D12951 --- src/applications/audit/view/PhabricatorAuditListView.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/applications/audit/view/PhabricatorAuditListView.php b/src/applications/audit/view/PhabricatorAuditListView.php index 6fc54f2e5f..96844c5b48 100644 --- a/src/applications/audit/view/PhabricatorAuditListView.php +++ b/src/applications/audit/view/PhabricatorAuditListView.php @@ -142,7 +142,12 @@ final class PhabricatorAuditListView extends AphrontView { $status_text = null; $status_color = null; } - $author_name = $commit->getCommitData()->getAuthorName(); + $author_phid = $commit->getAuthorPHID(); + if ($author_phid) { + $author_name = $this->getHandle($author_phid)->renderLink(); + } else { + $author_name = $commit->getCommitData()->getAuthorName(); + } $item = id(new PHUIObjectItemView()) ->setObjectName($commit_name)