summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/comments/commentsplugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/comments/commentsplugin.php')
-rw-r--r--apps/dav/lib/comments/commentsplugin.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/comments/commentsplugin.php b/apps/dav/lib/comments/commentsplugin.php
index 282c14df1e8..56d94cc33e9 100644
--- a/apps/dav/lib/comments/commentsplugin.php
+++ b/apps/dav/lib/comments/commentsplugin.php
@@ -116,6 +116,11 @@ class CommentsPlugin extends ServerPlugin {
$data,
$request->getHeader('Content-Type')
);
+
+ // update read marker for the current user/poster to avoid
+ // having their own comments marked as unread
+ $node->setReadMarker(null);
+
$url = $request->getUrl() . '/' . urlencode($comment->getId());
$response->setHeader('Content-Location', $url);