Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15375720
D19213.id46009.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
995 B
Referenced Files
None
Subscribers
None
D19213.id46009.diff
View Options
diff --git a/src/applications/subscriptions/policyrule/PhabricatorSubscriptionsSubscribersPolicyRule.php b/src/applications/subscriptions/policyrule/PhabricatorSubscriptionsSubscribersPolicyRule.php
--- a/src/applications/subscriptions/policyrule/PhabricatorSubscriptionsSubscribersPolicyRule.php
+++ b/src/applications/subscriptions/policyrule/PhabricatorSubscriptionsSubscribersPolicyRule.php
@@ -47,10 +47,14 @@
// Load the project PHIDs the user is a member of.
if (!isset($this->sourcePHIDs[$viewer_phid])) {
- $source_phids = PhabricatorEdgeQuery::loadDestinationPHIDs(
- $viewer_phid,
- PhabricatorProjectMemberOfProjectEdgeType::EDGECONST);
+ $projects = id(new PhabricatorProjectQuery())
+ ->setViewer($viewer)
+ ->withMemberPHIDs(array($viewer_phid))
+ ->execute();
+
+ $source_phids = mpull($projects, 'getPHID');
$source_phids[] = $viewer_phid;
+
$this->sourcePHIDs[$viewer_phid] = $source_phids;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 11:47 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7637075
Default Alt Text
D19213.id46009.diff (995 B)
Attached To
Mode
D19213: When computing the "Subscribers" policy, use materialized membership
Attached
Detach File
Event Timeline
Log In to Comment