Differential D10177 Diff 24498 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Show First 20 Lines • Show All 1,953 Lines • ▼ Show 20 Lines | protected function getMailCC(PhabricatorLiskDAO $object) { | ||||
$phids = array(); | $phids = array(); | ||||
$has_support = false; | $has_support = false; | ||||
if ($object instanceof PhabricatorSubscribableInterface) { | if ($object instanceof PhabricatorSubscribableInterface) { | ||||
$phids[] = $this->subscribers; | $phids[] = $this->subscribers; | ||||
$has_support = true; | $has_support = true; | ||||
} | } | ||||
// TODO: The Maniphest legacy stuff should get cleaned up here. | |||||
if (($object instanceof ManiphestTask) || | |||||
($object instanceof PhabricatorProjectInterface)) { | |||||
if ($object instanceof PhabricatorProjectInterface) { | if ($object instanceof PhabricatorProjectInterface) { | ||||
$project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | $project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$object->getPHID(), | $object->getPHID(), | ||||
PhabricatorProjectObjectHasProjectEdgeType::EDGECONST); | PhabricatorProjectObjectHasProjectEdgeType::EDGECONST); | ||||
} else { | |||||
$project_phids = $object->getProjectPHIDs(); | |||||
} | |||||
if ($project_phids) { | if ($project_phids) { | ||||
$watcher_type = PhabricatorEdgeConfig::TYPE_OBJECT_HAS_WATCHER; | $watcher_type = PhabricatorEdgeConfig::TYPE_OBJECT_HAS_WATCHER; | ||||
$query = id(new PhabricatorEdgeQuery()) | $query = id(new PhabricatorEdgeQuery()) | ||||
->withSourcePHIDs($project_phids) | ->withSourcePHIDs($project_phids) | ||||
->withEdgeTypes(array($watcher_type)); | ->withEdgeTypes(array($watcher_type)); | ||||
$query->execute(); | $query->execute(); | ||||
▲ Show 20 Lines • Show All 430 Lines • Show Last 20 Lines |