diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-11-12 17:30:22 +0100 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-11-12 17:30:22 +0100 |
commit | 19b77039d73ebc4dfa09261f164eed0ea7c1950e (patch) | |
tree | bc3b61b318bd18a3f967ef10eb9fb89c835d099f | |
parent | 8e3861563b1312e312be36208caef6812bdb201a (diff) | |
download | nextcloud-server-19b77039d73ebc4dfa09261f164eed0ea7c1950e.tar.gz nextcloud-server-19b77039d73ebc4dfa09261f164eed0ea7c1950e.zip |
remove cached size from shared calendar objects
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
-rw-r--r-- | apps/dav/lib/CalDAV/CalendarObject.php | 16 |
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() { |