We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b38f11 commit 529df98Copy full SHA for 529df98
apps/files_sharing/api/local.php
@@ -68,7 +68,6 @@ public static function getAllShares($params) {
68
if (\OC::$server->getPreviewManager()->isMimeSupported($share['mimetype'])) {
69
$share['isPreviewAvailable'] = true;
70
}
71
- $share['icon'] = substr(\OC_Helper::mimetypeIcon($share['mimetype']), 0, -3) . 'svg';
72
73
74
return new \OC_OCS_Result($shares);
apps/files_sharing/js/sharedfilelist.js
@@ -176,7 +176,7 @@
176
.map(function(share) {
177
var file = {
178
id: share.file_source,
179
- icon: share.icon,
+ icon: OC.MimeType.mimetypeIcon(share.mimetype),
180
mimetype: share.mimetype
181
};
182
if (share.item_type === 'folder') {
0 commit comments