Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/editor/HeraldRuleEditor.php
| Show All 24 Lines | final class HeraldRuleEditor | ||||
| } | } | ||||
| protected function shouldSendMail( | protected function shouldSendMail( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| array $xactions) { | array $xactions) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function getTransactionTypes() { | |||||
| $types = parent::getTransactionTypes(); | |||||
| $types[] = PhabricatorTransactions::TYPE_EDGE; | |||||
| return $types; | |||||
| } | |||||
| protected function getMailTo(PhabricatorLiskDAO $object) { | protected function getMailTo(PhabricatorLiskDAO $object) { | ||||
| $phids = array(); | $phids = array(); | ||||
| $phids[] = $this->getActingAsPHID(); | $phids[] = $this->getActingAsPHID(); | ||||
| if ($object->isPersonalRule()) { | if ($object->isPersonalRule()) { | ||||
| $phids[] = $object->getAuthorPHID(); | $phids[] = $object->getAuthorPHID(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||