Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15368457
D18941.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D18941.diff
View Options
diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -700,20 +700,26 @@
->addHeader('Thread-Topic', $thread_topic);
}
- protected function buildMailBody(
+ protected function getTransactionsForMail(
PhabricatorLiskDAO $object,
array $xactions) {
-
- $viewer = $this->requireActor();
-
// If this is the first time we're sending mail about this revision, we
// generate mail for all prior transactions, not just whatever is being
// applied now. This gets the "added reviewers" lines and other relevant
// information into the mail.
if ($this->isFirstBroadcast()) {
- $xactions = $this->loadUnbroadcastTransactions($object);
+ return $this->loadUnbroadcastTransactions($object);
}
+ return $xactions;
+ }
+
+ protected function buildMailBody(
+ PhabricatorLiskDAO $object,
+ array $xactions) {
+
+ $viewer = $this->requireActor();
+
$body = new PhabricatorMetaMTAMailBody();
$body->setViewer($this->requireActor());
diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -2546,6 +2546,12 @@
return $messages;
}
+ protected function getTransactionsForMail(
+ PhabricatorLiskDAO $object,
+ array $xactions) {
+ return $xactions;
+ }
+
private function buildMailForTarget(
PhabricatorLiskDAO $object,
array $xactions,
@@ -2566,17 +2572,19 @@
return null;
}
+ $mail_xactions = $this->getTransactionsForMail($object, $xactions);
+
$mail = $this->buildMailTemplate($object);
- $body = $this->buildMailBody($object, $xactions);
+ $body = $this->buildMailBody($object, $mail_xactions);
- $mail_tags = $this->getMailTags($object, $xactions);
- $action = $this->getMailAction($object, $xactions);
+ $mail_tags = $this->getMailTags($object, $mail_xactions);
+ $action = $this->getMailAction($object, $mail_xactions);
if (PhabricatorEnv::getEnvConfig('metamta.email-preferences')) {
$this->addEmailPreferenceSectionToMailBody(
$body,
$object,
- $xactions);
+ $mail_xactions);
}
$mail
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 2:15 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7600561
Default Alt Text
D18941.diff (2 KB)
Attached To
Mode
D18941: Always use the same set of transactions to generate mail and mail tags
Attached
Detach File
Event Timeline
Log In to Comment