{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18835","labels_url":"https://api.github.com/repos/owncloud/core/issues/18835/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18835/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18835/events","html_url":"https://github.com/owncloud/core/pull/18835","id":104908789,"number":18835,"title":"remove duplicate shares before mounting them","user":{"login":"icewind1991","id":1283854,"avatar_url":"https://avatars.githubusercontent.com/u/1283854?v=3","gravatar_id":"","url":"https://api.github.com/users/icewind1991","html_url":"https://github.com/icewind1991","followers_url":"https://api.github.com/users/icewind1991/followers","following_url":"https://api.github.com/users/icewind1991/following{/other_user}","gists_url":"https://api.github.com/users/icewind1991/gists{/gist_id}","starred_url":"https://api.github.com/users/icewind1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icewind1991/subscriptions","organizations_url":"https://api.github.com/users/icewind1991/orgs","repos_url":"https://api.github.com/users/icewind1991/repos","events_url":"https://api.github.com/users/icewind1991/events{/privacy}","received_events_url":"https://api.github.com/users/icewind1991/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-04T15:07:40Z","updated_at":"2015-09-08T08:01:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/18835","html_url":"https://github.com/owncloud/core/pull/18835","diff_url":"https://github.com/owncloud/core/pull/18835.diff","patch_url":"https://github.com/owncloud/core/pull/18835.patch"},"body":"Only try to mount one share for every source file\r\n\r\ncc @MorrisJobke @PVince81"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/138467980","html_url":"https://github.com/owncloud/core/pull/18835#issuecomment-138467980","issue_url":"https://api.github.com/repos/owncloud/core/issues/18835","id":138467980,"user":{"login":"schiesbn","id":1589737,"avatar_url":"https://avatars.githubusercontent.com/u/1589737?v=3","gravatar_id":"","url":"https://api.github.com/users/schiesbn","html_url":"https://github.com/schiesbn","followers_url":"https://api.github.com/users/schiesbn/followers","following_url":"https://api.github.com/users/schiesbn/following{/other_user}","gists_url":"https://api.github.com/users/schiesbn/gists{/gist_id}","starred_url":"https://api.github.com/users/schiesbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schiesbn/subscriptions","organizations_url":"https://api.github.com/users/schiesbn/orgs","repos_url":"https://api.github.com/users/schiesbn/repos","events_url":"https://api.github.com/users/schiesbn/events{/privacy}","received_events_url":"https://api.github.com/users/schiesbn/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T08:01:26Z","updated_at":"2015-09-08T08:01:26Z","body":"We already group the shares in getItems: https://github.com/owncloud/core/blob/master/lib/private/share/share.php#L1814\r\n\r\nIf you still get multiple items for the same file in getMountsForUser() you should probably check what gets wrong in getItems() instead of fixing it outside."}}