diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-12-07 15:07:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-07 15:07:23 +0100 |
commit | cfcce69272ca684cad32843d780cd31d01038e72 (patch) | |
tree | fae5a7adf53078e86f1f0ee46de8ce5938c640e0 /apps | |
parent | e2d0b84ec779d2ca26923d62a41483b961626bd4 (diff) | |
parent | d41d3d8bf31d8675113b13cde8725eb190b2a023 (diff) | |
download | nextcloud-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.php | 6 |
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); } } }); |