Differential D19864 Diff 47441 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,422 Lines • ▼ Show 20 Lines | /* -( Publishing Feed Stories )-------------------------------------------- */ | ||||
| /** | /** | ||||
| * @task feed | * @task feed | ||||
| */ | */ | ||||
| protected function publishFeedStory( | protected function publishFeedStory( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| array $xactions, | array $xactions, | ||||
| array $mailed_phids) { | array $mailed_phids) { | ||||
| $xactions = mfilter($xactions, 'shouldHideForFeed', true); | // Remove transactions which don't publish feed stories or notifications. | ||||
| // These never show up anywhere, so we don't need to do anything with them. | |||||
| foreach ($xactions as $key => $xaction) { | |||||
| if (!$xaction->shouldHideForFeed()) { | |||||
| continue; | |||||
| } | |||||
| if (!$xaction->shouldHideForNotifications()) { | |||||
| continue; | |||||
| } | |||||
| unset($xactions[$key]); | |||||
| } | |||||
| if (!$xactions) { | if (!$xactions) { | ||||
| return; | return; | ||||
| } | } | ||||
| $related_phids = $this->feedRelatedPHIDs; | $related_phids = $this->feedRelatedPHIDs; | ||||
| $subscribed_phids = $this->feedNotifyPHIDs; | $subscribed_phids = $this->feedNotifyPHIDs; | ||||
| ▲ Show 20 Lines • Show All 1,260 Lines • Show Last 20 Lines | |||||