mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Properly support mailing lists, with actual testing!
This commit is contained in:
parent
69bfd8e598
commit
e6c5d6c8ae
2 changed files with 8 additions and 1 deletions
6
resources/sql/patches/024.mlistkeys.sql
Normal file
6
resources/sql/patches/024.mlistkeys.sql
Normal file
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE phabricator_metamta.metamta_mailinglist
|
||||
ADD UNIQUE KEY (email);
|
||||
|
||||
ALTER TABLE phabricator_metamta.metamta_mailinglist
|
||||
ADD UNIQUE KEY (name);
|
||||
|
|
@ -226,7 +226,8 @@ class DifferentialCommitMessage {
|
|||
|
||||
if ($need_mail) {
|
||||
$mail = id(new PhabricatorMetaMTAMailingList())->loadAllWhere(
|
||||
'email in (%Ls)',
|
||||
'(email in (%Ls)) OR (name IN (%Ls))',
|
||||
$need_mail,
|
||||
$need_mail);
|
||||
$mail = mpull($mail, 'getPHID', 'getName') +
|
||||
mpull($mail, 'getPHID', 'getEmail');
|
||||
|
|
Loading…
Reference in a new issue