Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/worker/DoorkeeperJIRAFeedWorker.php
Show All 26 Lines | protected function publishFeedStory() { | ||||
$story = $this->getFeedStory(); | $story = $this->getFeedStory(); | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$provider = $this->getProvider(); | $provider = $this->getProvider(); | ||||
$object = $this->getStoryObject(); | $object = $this->getStoryObject(); | ||||
$publisher = $this->getPublisher(); | $publisher = $this->getPublisher(); | ||||
$jira_issue_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | $jira_issue_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$object->getPHID(), | $object->getPHID(), | ||||
PhabricatorEdgeConfig::TYPE_PHOB_HAS_JIRAISSUE); | PhabricatorJiraIssueHasObjectEdgeType::EDGECONST); | ||||
if (!$jira_issue_phids) { | if (!$jira_issue_phids) { | ||||
$this->log("Story is about an object with no linked JIRA issues.\n"); | $this->log("Story is about an object with no linked JIRA issues.\n"); | ||||
return; | return; | ||||
} | } | ||||
$xobjs = id(new DoorkeeperExternalObjectQuery()) | $xobjs = id(new DoorkeeperExternalObjectQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPHIDs($jira_issue_phids) | ->withPHIDs($jira_issue_phids) | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |