summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-12-15 15:53:48 +0100
committerJoas Schilling <coding@schilljs.com>2016-12-15 15:53:48 +0100
commit6de0eb0b741ff1cf0b735480a6c2d2fbcb1e70ca (patch)
tree3f94de87c67d706be564bfd8b1cb56e2f7ed1505 /apps/comments
parent3714a6aaf0b565808bd1ec7f8552196447402f58 (diff)
downloadnextcloud-server-6de0eb0b741ff1cf0b735480a6c2d2fbcb1e70ca.tar.gz
nextcloud-server-6de0eb0b741ff1cf0b735480a6c2d2fbcb1e70ca.zip
Remove leading slash from sharing activity
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/lib/Activity/Provider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/lib/Activity/Provider.php b/apps/comments/lib/Activity/Provider.php
index 170b20d7c27..c55982827b3 100644
--- a/apps/comments/lib/Activity/Provider.php
+++ b/apps/comments/lib/Activity/Provider.php
@@ -206,7 +206,7 @@ class Provider implements IProvider {
'type' => 'file',
'id' => $id,
'name' => basename($path),
- 'path' => $path,
+ 'path' => trim($path, '/'),
'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $id]),
];
}