summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/CalendarObject.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/CalDAV/CalendarObject.php')
-rw-r--r--apps/dav/lib/CalDAV/CalendarObject.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalendarObject.php b/apps/dav/lib/CalDAV/CalendarObject.php
index 949886bf32a..0db592898af 100644
--- a/apps/dav/lib/CalDAV/CalendarObject.php
+++ b/apps/dav/lib/CalDAV/CalendarObject.php
@@ -33,6 +33,22 @@ use Sabre\VObject\Reader;
class CalendarObject extends \Sabre\CalDAV\CalendarObject {
/**
+ * CalendarObject constructor.
+ *
+ * @param CalDavBackend $caldavBackend
+ * @param array $calendarInfo
+ * @param array $objectData
+ */
+ public function __construct(CalDavBackend $caldavBackend, array $calendarInfo,
+ array $objectData) {
+ parent::__construct($caldavBackend, $calendarInfo, $objectData);
+
+ if ($this->isShared()) {
+ unset($this->objectData['size']);
+ }
+ }
+
+ /**
* @inheritdoc
*/
function get() {