aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/AppInfo
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-09-20 17:33:51 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-12-11 16:28:40 +0100
commit4c32de22bbe8b21477e5d7c5043768ad8ad77d0c (patch)
tree83dc4eb5a61ca3cb25c805be85b8ebb330399808 /apps/dav/lib/AppInfo
parent80b27fdb93ac0c170d0b5e214f67a2eff6c366ad (diff)
downloadnextcloud-server-4c32de22bbe8b21477e5d7c5043768ad8ad77d0c.tar.gz
nextcloud-server-4c32de22bbe8b21477e5d7c5043768ad8ad77d0c.zip
Create activities for (un)publishing calendar events
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib/AppInfo')
-rw-r--r--apps/dav/lib/AppInfo/Application.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php
index a6ca99bfff5..b38f38044f3 100644
--- a/apps/dav/lib/AppInfo/Application.php
+++ b/apps/dav/lib/AppInfo/Application.php
@@ -178,6 +178,15 @@ class Application extends App {
);
});
+ $dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::publishCalendar', function(GenericEvent $event) {
+ /** @var Backend $backend */
+ $backend = $this->getContainer()->query(Backend::class);
+ $backend->onCalendarPublication(
+ $event->getArgument('calendarData'),
+ $event->getArgument('public')
+ );
+ });
+
$listener = function(GenericEvent $event, $eventName) {
/** @var Backend $backend */
$backend = $this->getContainer()->query(Backend::class);