mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-09 14:21:02 +01:00
Don't include resigned reviewers in the Differential "To" list
Summary: Ref T12689. See PHI178. This isn't a complete solution (you may still get mailed via packages/projects) but should fix the obvious issue, where "Resigned" reviewers are incorrectly always sent mail directly. Test Plan: Had Alice resign, interacted as Bailey, no mail to Alice. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T12689 Differential Revision: https://secure.phabricator.com/D18758
This commit is contained in:
parent
6ecdadb76a
commit
03d059dd26
1 changed files with 4 additions and 0 deletions
|
@ -630,6 +630,10 @@ final class DifferentialTransactionEditor
|
|||
$phids = array();
|
||||
$phids[] = $object->getAuthorPHID();
|
||||
foreach ($object->getReviewers() as $reviewer) {
|
||||
if ($reviewer->isResigned()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$phids[] = $reviewer->getReviewerPHID();
|
||||
}
|
||||
return $phids;
|
||||
|
|
Loading…
Reference in a new issue