diff --git a/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php b/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php index d22d34bee7..bf63d8e8e7 100644 --- a/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php +++ b/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php @@ -11,6 +11,15 @@ final class PhabricatorCalendarEventEditor return pht('Calendar'); } + public function getCreateObjectTitle($author, $object) { + return pht('%s created this event.', $author); + } + + public function getCreateObjectTitleForFeed($author, $object) { + return pht('%s created %s.', $author, $object); + } + + protected function shouldApplyInitialEffects( PhabricatorLiskDAO $object, array $xactions) { diff --git a/src/applications/calendar/import/PhabricatorCalendarImportEngine.php b/src/applications/calendar/import/PhabricatorCalendarImportEngine.php index 1bb7df46d2..96069e0ee1 100644 --- a/src/applications/calendar/import/PhabricatorCalendarImportEngine.php +++ b/src/applications/calendar/import/PhabricatorCalendarImportEngine.php @@ -471,6 +471,12 @@ abstract class PhabricatorCalendarImportEngine $xactions = array(); $uid = $node->getUID(); + if (!$event->getID()) { + $xactions[] = id(new PhabricatorCalendarEventTransaction()) + ->setTransactionType(PhabricatorTransactions::TYPE_CREATE) + ->setNewValue(true); + } + $name = $node->getName(); if (!strlen($name)) { if (strlen($uid)) {