summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-12-07 15:07:23 +0100
committerGitHub <noreply@github.com>2018-12-07 15:07:23 +0100
commitcfcce69272ca684cad32843d780cd31d01038e72 (patch)
treefae5a7adf53078e86f1f0ee46de8ce5938c640e0 /apps
parente2d0b84ec779d2ca26923d62a41483b961626bd4 (diff)
parentd41d3d8bf31d8675113b13cde8725eb190b2a023 (diff)
downloadnextcloud-server-cfcce69272ca684cad32843d780cd31d01038e72.tar.gz
nextcloud-server-cfcce69272ca684cad32843d780cd31d01038e72.zip
Merge pull request #12897 from nextcloud/fix-unread-comment-icon-not-shown-for-the-sharee
Fix unread comment icon not shown for the sharee
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);
}
}
});