diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 0181acab596f55f17c9dc13889115caf4cbf886a..e88ea1ad5d7a316ce0de1ef42e297fc0e0c035c5 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -950,7 +950,8 @@
 			if (fileData.isPreviewAvailable) {
 				var iconDiv = filenameTd.find('.thumbnail');
 				// lazy load / newly inserted td ?
-				if (options.animate) {
+				// the typeof check ensures that the default value of animate is true
+				if (typeof(options.animate) === 'undefined' || !!options.animate) {
 					this.lazyLoadPreview({
 						path: path + '/' + fileData.name,
 						mime: mime,
diff --git a/apps/files_sharing/api/local.php b/apps/files_sharing/api/local.php
index 00509bcee699521844bdb8568e14b97fe0a07d32..03812800c17faff60c90613a80d9567fba95c6b9 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);
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index 2c7d6c7d43a51ceabf885e28289909efe8606141..ca187940a08c456b3b8eddee2381b74dd73c225e 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -176,6 +176,7 @@
 				.map(function(share) {
 					var file = {
 						id: share.file_source,
+						icon: share.icon,
 						mimetype: share.mimetype
 					};
 					if (share.item_type === 'folder') {