@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+11 -8
+11 -8
src/applications/calendar/editor/PhabricatorCalendarEventEditor.php
··· 304 304 protected function buildMailTemplate(PhabricatorLiskDAO $object) { 305 305 $id = $object->getID(); 306 306 $name = $object->getName(); 307 + $monogram = $object->getMonogram(); 307 308 308 309 return id(new PhabricatorMetaMTAMail()) 309 - ->setSubject("E{$id}: {$name}") 310 - ->addHeader('Thread-Topic', "E{$id}: ".$object->getName()); 310 + ->setSubject("{$monogram}: {$name}") 311 + ->addHeader('Thread-Topic', $monogram); 311 312 } 312 313 313 314 protected function buildMailBody( 314 315 PhabricatorLiskDAO $object, 315 316 array $xactions) { 316 317 317 - $description = $object->getDescription(); 318 318 $body = parent::buildMailBody($object, $xactions); 319 319 320 - if (strlen($description)) { 321 - $body->addRemarkupSection( 322 - pht('EVENT DESCRIPTION'), 323 - $description); 320 + $description = $object->getDescription(); 321 + if ($this->getIsNewObject()) { 322 + if (strlen($description)) { 323 + $body->addRemarkupSection( 324 + pht('EVENT DESCRIPTION'), 325 + $description); 326 + } 324 327 } 325 328 326 329 $body->addLinkSection( 327 330 pht('EVENT DETAIL'), 328 - PhabricatorEnv::getProductionURI('/E'.$object->getID())); 331 + PhabricatorEnv::getProductionURI($object->getURI())); 329 332 330 333 $ics_attachment = $this->newICSAttachment($object); 331 334 $body->addAttachment($ics_attachment);