Differential D11074 Diff 26680 src/applications/diffusion/events/DiffusionHovercardEventListener.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/events/DiffusionHovercardEventListener.php
Show All 22 Lines | private function handleHovercardEvent($event) { | ||||
if (!($commit instanceof PhabricatorRepositoryCommit)) { | if (!($commit instanceof PhabricatorRepositoryCommit)) { | ||||
return; | return; | ||||
} | } | ||||
$commit_data = $commit->loadCommitData(); | $commit_data = $commit->loadCommitData(); | ||||
$revision = PhabricatorEdgeQuery::loadDestinationPHIDs( | $revision = PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$commit->getPHID(), | $commit->getPHID(), | ||||
PhabricatorEdgeConfig::TYPE_COMMIT_HAS_DREV); | DiffusionCommitHasRevisionEdgeType::EDGECONST); | ||||
$revision = reset($revision); | $revision = reset($revision); | ||||
$author = $commit->getAuthorPHID(); | $author = $commit->getAuthorPHID(); | ||||
$phids = array_filter(array( | $phids = array_filter(array( | ||||
$revision, | $revision, | ||||
$author, | $author, | ||||
)); | )); | ||||
Show All 36 Lines |