{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/16531","labels_url":"https://api.github.com/repos/owncloud/core/issues/16531/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/16531/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/16531/events","html_url":"https://github.com/owncloud/core/issues/16531","id":79413224,"number":16531,"title":"Move icon from OCS Share API to javascript","user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/1%20-%20To%20develop","name":"1 - To develop","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev3-medium","name":"sev3-medium","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/sharing","name":"sharing","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/31","html_url":"https://github.com/owncloud/core/milestones/8.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/31/labels","id":912160,"number":31,"title":"8.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":116,"closed_issues":1215,"state":"open","created_at":"2014-12-22T12:04:01Z","updated_at":"2015-05-22T11:20:02Z","due_on":"2015-04-02T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-05-22T11:20:02Z","updated_at":"2015-05-22T11:20:02Z","closed_at":null,"body":"#16127 introduced the icon field to OCS Share API responses for files. However in its current form it looks weird and clutters the response. Especially since it is only usable for the web front end.\r\n\r\nI propose to remove the functionality from the OCS Share API and to have the icon handling done in javascript. Since the OCS Share API does provide the mime type of the file. Some static javascript file should be good enough.\r\n\r\nThis should not be a problem since the functionality is not yet released. And make the API responses be useful on all platforms again.\r\n\r\nCC: @MorrisJobke @DeepDiver1975 @karlitschek @schiesbn "}}