Skip to content

Commit 03d059d

Browse files
author
epriestley
committed
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
1 parent 6ecdadb commit 03d059d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/applications/differential/editor/DifferentialTransactionEditor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,10 @@ protected function getMailTo(PhabricatorLiskDAO $object) {
630630
$phids = array();
631631
$phids[] = $object->getAuthorPHID();
632632
foreach ($object->getReviewers() as $reviewer) {
633+
if ($reviewer->isResigned()) {
634+
continue;
635+
}
636+
633637
$phids[] = $reviewer->getReviewerPHID();
634638
}
635639
return $phids;

0 commit comments

Comments
 (0)