Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
| Show First 20 Lines • Show All 934 Lines • ▼ Show 20 Lines | if ($from_actor) { | ||||
| ->loadPreferences() | ->loadPreferences() | ||||
| ->getPreference($pref_key); | ->getPreference($pref_key); | ||||
| if ($exclude_self) { | if ($exclude_self) { | ||||
| $from_actor->setUndeliverable(PhabricatorMetaMTAActor::REASON_SELF); | $from_actor->setUndeliverable(PhabricatorMetaMTAActor::REASON_SELF); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| $all_prefs = id(new PhabricatorUserPreferences())->loadAllWhere( | $all_prefs = id(new PhabricatorUserPreferencesQuery()) | ||||
| 'userPHID in (%Ls)', | ->setViewer(PhabricatorUser::getOmnipotentUser()) | ||||
| $actor_phids); | ->withUserPHIDs($actor_phids) | ||||
| ->execute(); | |||||
| $all_prefs = mpull($all_prefs, null, 'getUserPHID'); | $all_prefs = mpull($all_prefs, null, 'getUserPHID'); | ||||
| $value_email = PhabricatorUserPreferences::MAILTAG_PREFERENCE_EMAIL; | $value_email = PhabricatorUserPreferences::MAILTAG_PREFERENCE_EMAIL; | ||||
| // Exclude all recipients who have set preferences to not receive this type | // Exclude all recipients who have set preferences to not receive this type | ||||
| // of email (for example, a user who says they don't want emails about task | // of email (for example, a user who says they don't want emails about task | ||||
| // CC changes). | // CC changes). | ||||
| $tags = $this->getParam('mailtags'); | $tags = $this->getParam('mailtags'); | ||||
| ▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines | |||||