diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-05-06 18:32:52 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-05-06 18:32:52 +0200 |
commit | b1713b2f75370d6c597c2a2a16ab51431802ade2 (patch) | |
tree | 743ae6d1c0ed5c5fe4e7823833bdcdb635a13a61 /apps/files_sharing/api | |
parent | 6633514a980b3246bdd4c26a1b890d12306f47f8 (diff) | |
download | nextcloud-server-b1713b2f75370d6c597c2a2a16ab51431802ade2.tar.gz nextcloud-server-b1713b2f75370d6c597c2a2a16ab51431802ade2.zip |
Enable file icons & previews in "Shared ..." categories
* sharing API returns now the mimetype icon path
* file previews are now lazyloaded by default (as the doc says)
* fixes #16086
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r-- | apps/files_sharing/api/local.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/api/local.php b/apps/files_sharing/api/local.php index 00509bcee69..03812800c17 100644 --- a/apps/files_sharing/api/local.php +++ b/apps/files_sharing/api/local.php @@ -68,6 +68,7 @@ class Local { if (\OC::$server->getPreviewManager()->isMimeSupported($share['mimetype'])) { $share['isPreviewAvailable'] = true; } + $share['icon'] = substr(\OC_Helper::mimetypeIcon($share['mimetype']), 0, -3) . 'svg'; } } return new \OC_OCS_Result($shares); |