Browse Source

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>
tags/v16.0.0alpha1
Roeland Jago Douma 5 years ago
parent
commit
d41d3d8bf3
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php

+ 3
- 3
apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php View File

@@ -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);
}
}
});

Loading…
Cancel
Save