Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18086586
D19495.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19495.diff
View Options
diff --git a/src/applications/repository/query/PhabricatorRepositoryIdentityQuery.php b/src/applications/repository/query/PhabricatorRepositoryIdentityQuery.php
--- a/src/applications/repository/query/PhabricatorRepositoryIdentityQuery.php
+++ b/src/applications/repository/query/PhabricatorRepositoryIdentityQuery.php
@@ -124,6 +124,27 @@
return $where;
}
+ protected function didFilterPage(array $identities) {
+ $user_ids = array_filter(
+ mpull($identities, 'getCurrentEffectiveUserPHID', 'getID'));
+ if (!$user_ids) {
+ return $identities;
+ }
+
+ $users = id(new PhabricatorUser())->loadAllWhere(
+ 'phid IN (%Ls)', $user_ids);
+ $users = mpull($users, null, 'getPHID');
+
+ foreach ($identities as $identity) {
+ if ($identity->hasEffectiveUser()) {
+ $user = idx($users, $identity->getCurrentEffectiveUserPHID());
+ $identity->attachEffectiveUser($user);
+ }
+ }
+
+ return $identities;
+ }
+
public function getQueryApplicationClass() {
return 'PhabricatorDiffusionApplication';
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 6, 10:54 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
9031831
Default Alt Text
D19495.diff (1 KB)
Attached To
Mode
D19495: Correctly attach users to identities
Attached
Detach File
Event Timeline
Log In to Comment