Differential D19861 Diff 47440 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 3,372 Lines • ▼ Show 20 Lines | /* -( Publishing Feed Stories )-------------------------------------------- */ | ||||
| /** | /** | ||||
| * @task feed | * @task feed | ||||
| */ | */ | ||||
| protected function getFeedNotifyPHIDs( | protected function getFeedNotifyPHIDs( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| array $xactions) { | array $xactions) { | ||||
| return array_unique(array_merge( | // If some transactions are forcing notification delivery, add the forced | ||||
| $this->getMailTo($object), | // recipients to the notify list. | ||||
| $this->getMailCC($object))); | $force_list = array(); | ||||
| foreach ($xactions as $xaction) { | |||||
| $force_phids = $xaction->getForceNotifyPHIDs(); | |||||
| if (!$force_phids) { | |||||
| continue; | |||||
| } | |||||
| foreach ($force_phids as $force_phid) { | |||||
| $force_list[] = $force_phid; | |||||
| } | |||||
| } | |||||
| $to_list = $this->getMailTo($object); | |||||
| $cc_list = $this->getMailCC($object); | |||||
| $full_list = array_merge($force_list, $to_list, $cc_list); | |||||
| $full_list = array_fuse($full_list); | |||||
| return array_keys($full_list); | |||||
| } | } | ||||
| /** | /** | ||||
| * @task feed | * @task feed | ||||
| */ | */ | ||||
| protected function getFeedStoryData( | protected function getFeedStoryData( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| ▲ Show 20 Lines • Show All 1,289 Lines • Show Last 20 Lines | |||||