From 6de0eb0b741ff1cf0b735480a6c2d2fbcb1e70ca Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 15 Dec 2016 15:53:48 +0100 Subject: Remove leading slash from sharing activity Signed-off-by: Joas Schilling --- apps/comments/lib/Activity/Provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/comments/lib') 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]), ]; } -- cgit v1.2.3