Skip to content

Commit 529df98

Browse files
committed
Move sharedfilelist to mimetype.js
* sharedfilelist.js now uses javascript to generate the icon of a file * icon removed from OCS Share API
1 parent 4b38f11 commit 529df98

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
@@ -68,7 +68,6 @@ public static function getAllShares($params) {
6868
if (\OC::$server->getPreviewManager()->isMimeSupported($share['mimetype'])) {
6969
$share['isPreviewAvailable'] = true;
7070
}
71-
$share['icon'] = substr(\OC_Helper::mimetypeIcon($share['mimetype']), 0, -3) . 'svg';
7271
}
7372
}
7473
return new \OC_OCS_Result($shares);

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.mimetypeIcon(share.mimetype),
180180
mimetype: share.mimetype
181181
};
182182
if (share.item_type === 'folder') {

0 commit comments

Comments
 (0)