mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Revert attempt to fix mail in differential
Summary: This fix is wrong - should be load and not get - but moreover this is actually correctly set as the reply handler is instantiated inside the DifferentialRevisionMailReceiver correctly; $this->getExclude was correct. Ref T5185. Test Plan: this shall stop the fatal in production. Reviewers: chad, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5185 Differential Revision: https://secure.phabricator.com/D10101
This commit is contained in:
parent
f3cc0c2018
commit
c4cbc1a32d
1 changed files with 4 additions and 10 deletions
|
@ -146,21 +146,15 @@ class DifferentialReplyHandler extends PhabricatorMailReplyHandler {
|
|||
->setContent($body));
|
||||
}
|
||||
|
||||
// NOTE: We have to be careful about this because Facebook's
|
||||
// implementation jumps straight into handleAction() and will not have
|
||||
// a PhabricatorMetaMTAReceivedMail object.
|
||||
if ($this->receivedMail) {
|
||||
$exclude = $this->receivedMail->getExcludeMailRecipientPHIDs();
|
||||
} else {
|
||||
$exclude = $this->getExcludeMailRecipientPHIDs();
|
||||
}
|
||||
|
||||
$editor = id(new DifferentialTransactionEditor())
|
||||
->setActor($actor)
|
||||
->setExcludeMailRecipientPHIDs($exclude)
|
||||
->setExcludeMailRecipientPHIDs($this->getExcludeMailRecipientPHIDs())
|
||||
->setContinueOnMissingFields(true)
|
||||
->setContinueOnNoEffect(true);
|
||||
|
||||
// NOTE: We have to be careful about this because Facebook's
|
||||
// implementation jumps straight into handleAction() and will not have
|
||||
// a PhabricatorMetaMTAReceivedMail object.
|
||||
if ($this->receivedMail) {
|
||||
$content_source = PhabricatorContentSource::newForSource(
|
||||
PhabricatorContentSource::SOURCE_EMAIL,
|
||||
|
|
Loading…
Reference in a new issue