mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
In Calendar, only include the event description in the original event mail
Summary: Ref T11809. This makes the mail more consistent with Differential and Maniphest, which only include additional details in the first mail in the thread. Test Plan: - Created an event with a description. - First mail included it. - Followups did not. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11809 Differential Revision: https://secure.phabricator.com/D16794
This commit is contained in:
parent
c9510cc118
commit
64cf9204c1
1 changed files with 11 additions and 8 deletions
|
@ -304,28 +304,31 @@ final class PhabricatorCalendarEventEditor
|
|||
protected function buildMailTemplate(PhabricatorLiskDAO $object) {
|
||||
$id = $object->getID();
|
||||
$name = $object->getName();
|
||||
$monogram = $object->getMonogram();
|
||||
|
||||
return id(new PhabricatorMetaMTAMail())
|
||||
->setSubject("E{$id}: {$name}")
|
||||
->addHeader('Thread-Topic', "E{$id}: ".$object->getName());
|
||||
->setSubject("{$monogram}: {$name}")
|
||||
->addHeader('Thread-Topic', $monogram);
|
||||
}
|
||||
|
||||
protected function buildMailBody(
|
||||
PhabricatorLiskDAO $object,
|
||||
array $xactions) {
|
||||
|
||||
$description = $object->getDescription();
|
||||
$body = parent::buildMailBody($object, $xactions);
|
||||
|
||||
$description = $object->getDescription();
|
||||
if ($this->getIsNewObject()) {
|
||||
if (strlen($description)) {
|
||||
$body->addRemarkupSection(
|
||||
pht('EVENT DESCRIPTION'),
|
||||
$description);
|
||||
}
|
||||
}
|
||||
|
||||
$body->addLinkSection(
|
||||
pht('EVENT DETAIL'),
|
||||
PhabricatorEnv::getProductionURI('/E'.$object->getID()));
|
||||
PhabricatorEnv::getProductionURI($object->getURI()));
|
||||
|
||||
$ics_attachment = $this->newICSAttachment($object);
|
||||
$body->addAttachment($ics_attachment);
|
||||
|
|
Loading…
Reference in a new issue