Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/query/PhabricatorMetaMTAActorQuery.php
| Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | private function loadUserActors(array $actors, array $phids) { | ||||
| $emails = id(new PhabricatorUserEmail())->loadAllWhere( | $emails = id(new PhabricatorUserEmail())->loadAllWhere( | ||||
| 'userPHID IN (%Ls) AND isPrimary = 1', | 'userPHID IN (%Ls) AND isPrimary = 1', | ||||
| $phids); | $phids); | ||||
| $emails = mpull($emails, null, 'getUserPHID'); | $emails = mpull($emails, null, 'getUserPHID'); | ||||
| $users = id(new PhabricatorPeopleQuery()) | $users = id(new PhabricatorPeopleQuery()) | ||||
| ->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
| ->withPHIDs($phids) | ->withPHIDs($phids) | ||||
| ->needUserSettings(true) | |||||
| ->execute(); | ->execute(); | ||||
| $users = mpull($users, null, 'getPHID'); | $users = mpull($users, null, 'getPHID'); | ||||
| foreach ($phids as $phid) { | foreach ($phids as $phid) { | ||||
| $actor = $actors[$phid]; | $actor = $actors[$phid]; | ||||
| $user = idx($users, $phid); | $user = idx($users, $phid); | ||||
| if (!$user) { | if (!$user) { | ||||
| ▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines | |||||