Differential D18598 Diff 44662 src/applications/differential/editor/DifferentialTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialTransactionEditor.php
| Show First 20 Lines • Show All 760 Lines • ▼ Show 20 Lines | if ($update_xaction) { | ||||
| $this->appendChangeDetailsForMail($object, $diff, $patch, $body); | $this->appendChangeDetailsForMail($object, $diff, $patch, $body); | ||||
| } else { | } else { | ||||
| // TODO: Provide a helpful message about the patch being too | // TODO: Provide a helpful message about the patch being too | ||||
| // large or lengthy here. | // large or lengthy here. | ||||
| } | } | ||||
| } | } | ||||
| if ($config_attach) { | if ($config_attach) { | ||||
| // See T12033, T11767, and PHI55. This is a crude fix to stop the | |||||
| // major concrete problems that lackluster email size limits cause. | |||||
| if (strlen($patch) < $body_limit) { | |||||
| $name = pht('D%s.%s.patch', $object->getID(), $diff->getID()); | $name = pht('D%s.%s.patch', $object->getID(), $diff->getID()); | ||||
| $mime_type = 'text/x-patch; charset=utf-8'; | $mime_type = 'text/x-patch; charset=utf-8'; | ||||
| $body->addAttachment( | $body->addAttachment( | ||||
| new PhabricatorMetaMTAAttachment($patch, $name, $mime_type)); | new PhabricatorMetaMTAAttachment($patch, $name, $mime_type)); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | |||||
| return $body; | return $body; | ||||
| } | } | ||||
| public function getMailTagsMap() { | public function getMailTagsMap() { | ||||
| return array( | return array( | ||||
| DifferentialTransaction::MAILTAG_REVIEW_REQUEST => | DifferentialTransaction::MAILTAG_REVIEW_REQUEST => | ||||
| pht('A revision is created.'), | pht('A revision is created.'), | ||||
| ▲ Show 20 Lines • Show All 707 Lines • Show Last 20 Lines | |||||