From 4ed291ce239b7e275fc53b284198faab2b20c2f0 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 6 Dec 2018 21:59:28 +0100 Subject: [PATCH] If the parent is not cached we should request the file Else we ignore all incomming shares. Which basically does :boom: Signed-off-by: Roeland Jago Douma --- apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php b/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php index 58469d27205..2ff6bec0ea9 100644 --- a/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php @@ -112,11 +112,11 @@ class CommentPropertiesPlugin extends ServerPlugin { if ($parentPath === '') { $parentPath = '/'; } - // if we already cached the folder this file is in we know there are no shares for this file + // if we already cached the folder this file is in we know there are no comments for this file if (array_search($parentPath, $this->cachedFolders) === false) { - return $this->getUnreadCount($node); - } else { return 0; + } else { + return $this->getUnreadCount($node); } } }); -- 2.39.5