summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-12-06 21:59:28 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-06 21:59:28 +0100
commitd41d3d8bf31d8675113b13cde8725eb190b2a023 (patch)
treed9a8d70c6011c23a2b77d25fb45738c8af0b46e6 /apps
parent6cee8ba827a407831763091b063d789a8bd81686 (diff)
downloadnextcloud-server-d41d3d8bf31d8675113b13cde8725eb190b2a023.tar.gz
nextcloud-server-d41d3d8bf31d8675113b13cde8725eb190b2a023.zip
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 <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php6
1 files 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);
}
}
});