mirror of
https://github.com/nextcloud/server.git
synced 2026-03-02 13:31:14 -05:00
Share app no longer use the OCS API icon
Switch to new javascript mimetype resolver
This commit is contained in:
parent
c8145cdbd6
commit
868bc421cb
2 changed files with 1 additions and 2 deletions
|
|
@ -69,7 +69,6 @@ class Local {
|
|||
if (\OC::$server->getPreviewManager()->isMimeSupported($share['mimetype'])) {
|
||||
$share['isPreviewAvailable'] = true;
|
||||
}
|
||||
$share['icon'] = substr(\OC_Helper::mimetypeIcon($share['mimetype']), 0, -3) . 'svg';
|
||||
}
|
||||
|
||||
if (!is_null($share['token'])) {
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@
|
|||
.map(function(share) {
|
||||
var file = {
|
||||
id: share.file_source,
|
||||
icon: share.icon,
|
||||
icon: OC.MimeType.getIconUrl(share.mimetype),
|
||||
mimetype: share.mimetype
|
||||
};
|
||||
if (share.item_type === 'folder') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue