Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14759224
D17507.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
712 B
Referenced Files
None
Subscribers
None
D17507.id.diff
View Options
diff --git a/src/applications/audit/editor/PhabricatorAuditEditor.php b/src/applications/audit/editor/PhabricatorAuditEditor.php
--- a/src/applications/audit/editor/PhabricatorAuditEditor.php
+++ b/src/applications/audit/editor/PhabricatorAuditEditor.php
@@ -306,6 +306,18 @@
$field_key = DifferentialAuditorsCommitMessageField::FIELDKEY;
$phids = idx($result, $field_key, null);
+
+ if (!$phids) {
+ return array();
+ }
+
+ // If a commit lists its author as an auditor, just pretend it does not.
+ foreach ($phids as $key => $phid) {
+ if ($phid == $commit->getAuthorPHID()) {
+ unset($phids[$key]);
+ }
+ }
+
if (!$phids) {
return array();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 23, 11:39 AM (8 h, 20 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7036766
Default Alt Text
D17507.id.diff (712 B)
Attached To
Mode
D17507: Ignore "Auditors: author" when inferring auditors from commit messages
Attached
Detach File
Event Timeline
Log In to Comment