summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Server.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-06-08 11:50:17 +0200
committerGeorg Ehrke <developer@georgehrke.com>2017-09-05 13:13:37 +0200
commit86f28669fce3360a75513f06beb945ab54d20a6a (patch)
treed52f22e767f0c0a85fb29d136de82fec52196d50 /apps/dav/lib/Server.php
parent6be5dc91cb345886c14661f4ce7dd54a2e500f61 (diff)
downloadnextcloud-server-86f28669fce3360a75513f06beb945ab54d20a6a.tar.gz
nextcloud-server-86f28669fce3360a75513f06beb945ab54d20a6a.zip
don't send invitation emails for past events
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r--apps/dav/lib/Server.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index 896af09f1c0..30c0a4afbd7 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -28,6 +28,7 @@
*/
namespace OCA\DAV;
+use OC\AppFramework\Utility\TimeFactory;
use OCA\DAV\CalDAV\Schedule\IMipPlugin;
use OCA\DAV\CardDAV\ImageExportPlugin;
use OCA\DAV\CardDAV\PhotoCache;
@@ -73,6 +74,7 @@ class Server {
$logger = \OC::$server->getLogger();
$mailer = \OC::$server->getMailer();
$dispatcher = \OC::$server->getEventDispatcher();
+ $timezone = new TimeFactory();
$root = new RootCollection();
$this->server = new \OCA\DAV\Connector\Sabre\Server($root);
@@ -134,7 +136,7 @@ class Server {
$this->server->addPlugin(new \OCA\DAV\CalDAV\Plugin());
$this->server->addPlugin(new \Sabre\CalDAV\ICSExportPlugin());
$this->server->addPlugin(new \OCA\DAV\CalDAV\Schedule\Plugin());
- $this->server->addPlugin(new IMipPlugin($mailer, $logger));
+ $this->server->addPlugin(new IMipPlugin($mailer, $logger, $timezone));
$this->server->addPlugin(new \Sabre\CalDAV\Subscriptions\Plugin());
$this->server->addPlugin(new \Sabre\CalDAV\Notifications\Plugin());
$this->server->addPlugin(new DAV\Sharing\Plugin($authBackend, \OC::$server->getRequest()));