Fix an issue with rendering some commit hovercards

Summary: This logic wasn't quite right.

Test Plan: Hovered over a recognized commit, got a valid hovercard

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D14925
This commit is contained in:
epriestley
2016-01-02 05:09:10 -08:00
parent 2328e739b7
commit 1b4f5e38ce

View File

@@ -28,7 +28,7 @@ final class DiffusionHovercardEngineExtension
$author_phid = $commit->getAuthorPHID();
if ($author_phid) {
$author = $viewer->loadHandle($author)->renderLink();
$author = $viewer->renderHandle($author_phid);
} else {
$commit_data = $commit->loadCommitData();
$author = phutil_tag('em', array(), $commit_data->getAuthorName());