If the parent is not cached we should request the file
Else we ignore all incomming shares. Which basically does 💥
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
edab262b0e
commit
4ed291ce23
|
@ -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…
Reference in New Issue