1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00

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
This commit is contained in:
epriestley 2015-05-20 09:08:39 -07:00
parent cbc5ad1604
commit 9539839833

View file

@ -142,7 +142,12 @@ final class PhabricatorAuditListView extends AphrontView {
$status_text = null; $status_text = null;
$status_color = 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()) $item = id(new PHUIObjectItemView())
->setObjectName($commit_name) ->setObjectName($commit_name)