mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 09:20:58 +01:00
Clean up Maniphest email "to"
Summary: We currently try to send Maniphest email "To" the owner and actor, but for unassigned tasks there is no owner. Just filter the PHIDs in the parent, since it's reasonable for subclasses to be liberal about construction here. Test Plan: Commented on an unassigned task, got an email without a bogus "To". Reviewers: btrahan, asherkin Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D7129
This commit is contained in:
parent
1e2718d747
commit
b8154cb5e9
1 changed files with 2 additions and 2 deletions
|
@ -1205,8 +1205,8 @@ abstract class PhabricatorApplicationTransactionEditor
|
|||
PhabricatorLiskDAO $object,
|
||||
array $xactions) {
|
||||
|
||||
$email_to = array_unique($this->getMailTo($object));
|
||||
$email_cc = array_unique($this->getMailCC($object));
|
||||
$email_to = array_filter(array_unique($this->getMailTo($object)));
|
||||
$email_cc = array_filter(array_unique($this->getMailCC($object)));
|
||||
|
||||
$phids = array_merge($email_to, $email_cc);
|
||||
$handles = id(new PhabricatorHandleQuery())
|
||||
|
|
Loading…
Reference in a new issue