Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
respect privacy options of event
do not show calendar events in activity log if event is not public

Signed-off-by: Fabian Dellwing <[email protected]>
  • Loading branch information
Fabian Dellwing committed Jan 3, 2019
commit bdb52010213bf8640d55a768aa016e168b514e3c
6 changes: 5 additions & 1 deletion apps/dav/lib/CalDAV/Activity/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ public function onTouchCalendarObject($action, array $calendarData, array $share
$currentUser = $owner;
}

$classification = (isset($objectData['classification']) ? $objectData['classification'] : 0);

$object = $this->getObjectNameAndType($objectData);
$action = $action . '_' . $object['type'];

Expand Down Expand Up @@ -450,7 +452,9 @@ public function onTouchCalendarObject($action, array $calendarData, array $share
],
]
);
$this->activityManager->publish($event);
if ($event->getType() === 'calendar_event' && $classification === 0) {
$this->activityManager->publish($event);
}
}
}

Expand Down