Skip to content

Commit 868bc42

Browse files
committed
Share app no longer use the OCS API icon
Switch to new javascript mimetype resolver
1 parent c8145cd commit 868bc42

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apps/files_sharing/api/local.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public static function getAllShares($params) {
6969
if (\OC::$server->getPreviewManager()->isMimeSupported($share['mimetype'])) {
7070
$share['isPreviewAvailable'] = true;
7171
}
72-
$share['icon'] = substr(\OC_Helper::mimetypeIcon($share['mimetype']), 0, -3) . 'svg';
7372
}
7473

7574
if (!is_null($share['token'])) {

apps/files_sharing/js/sharedfilelist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
.map(function(share) {
177177
var file = {
178178
id: share.file_source,
179-
icon: share.icon,
179+
icon: OC.MimeType.getIconUrl(share.mimetype),
180180
mimetype: share.mimetype
181181
};
182182
if (share.item_type === 'folder') {

0 commit comments

Comments
 (0)