Only add the Mail "STAMPS" body section if there are stamps
Summary: Ref T13053. Some mail (like push notification mail) doesn't currently generate any stamps. Drop this section if there aren't any stamps on the mail. Test Plan: Will check push mail in production. Maniphest Tasks: T13053 Differential Revision: https://secure.phabricator.com/D19028
This commit is contained in:
@@ -66,7 +66,7 @@ final class PhabricatorMailTarget extends Phobject {
|
|||||||
|
|
||||||
if ($show_stamps) {
|
if ($show_stamps) {
|
||||||
$stamps = $mail->getMailStamps();
|
$stamps = $mail->getMailStamps();
|
||||||
|
if ($stamps) {
|
||||||
$body .= "\n";
|
$body .= "\n";
|
||||||
$body .= pht('STAMPS');
|
$body .= pht('STAMPS');
|
||||||
$body .= "\n";
|
$body .= "\n";
|
||||||
@@ -89,6 +89,7 @@ final class PhabricatorMailTarget extends Phobject {
|
|||||||
$html_body .= hsprintf('%s', $html);
|
$html_body .= hsprintf('%s', $html);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$mail->addPHIDHeaders('X-Phabricator-To', $this->rawToPHIDs);
|
$mail->addPHIDHeaders('X-Phabricator-To', $this->rawToPHIDs);
|
||||||
$mail->addPHIDHeaders('X-Phabricator-Cc', $this->rawCCPHIDs);
|
$mail->addPHIDHeaders('X-Phabricator-Cc', $this->rawCCPHIDs);
|
||||||
|
|||||||
Reference in New Issue
Block a user