mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Move Conpherence to "Zxxx" only, not "Exxx"
Summary: Fixes T7439. Also two callsites I missed earlier. Test Plan: Tried to search for strings like `'E` and `"E`. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7439 Differential Revision: https://secure.phabricator.com/D12616
This commit is contained in:
parent
f721501877
commit
2ebca7a245
2 changed files with 4 additions and 6 deletions
|
@ -497,8 +497,8 @@ final class ConpherenceEditor extends PhabricatorApplicationTransactionEditor {
|
|||
$phid = $object->getPHID();
|
||||
|
||||
return id(new PhabricatorMetaMTAMail())
|
||||
->setSubject("E{$id}: {$title}")
|
||||
->addHeader('Thread-Topic', "E{$id}: {$phid}");
|
||||
->setSubject("Z{$id}: {$title}")
|
||||
->addHeader('Thread-Topic', "Z{$id}: {$phid}");
|
||||
}
|
||||
|
||||
protected function getMailTo(PhabricatorLiskDAO $object) {
|
||||
|
|
|
@ -9,13 +9,11 @@ final class ConpherenceThreadMailReceiver
|
|||
}
|
||||
|
||||
protected function getObjectPattern() {
|
||||
// TODO: Only recognize "Z" once we get closer to shipping Calendar.
|
||||
return '[EZ][1-9]\d*';
|
||||
return 'Z[1-9]\d*';
|
||||
}
|
||||
|
||||
protected function loadObject($pattern, PhabricatorUser $viewer) {
|
||||
// TODO: Only recognize "Z" once we get closer to shipping Calendar.
|
||||
$id = (int)trim($pattern, 'EZ');
|
||||
$id = (int)trim($pattern, 'Z');
|
||||
|
||||
return id(new ConpherenceThreadQuery())
|
||||
->setViewer($viewer)
|
||||
|
|
Loading…
Reference in a new issue