From 53437ecced06c5dcff0c2b62b915b6bbf716bccb Mon Sep 17 00:00:00 2001 From: Piotr Filiciak Date: Fri, 29 Apr 2016 12:22:26 +0200 Subject: Fix: Bugs in shared link with video #24331 --- apps/files_sharing/js/public.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/js') diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 2d93bc17996..6df19621be6 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -139,7 +139,7 @@ OCA.Sharing.PublicApp = { }).then(function (data) { self._showTextPreview(data, previewHeight); }); - } else if (previewSupported === 'true' || + } else if ((previewSupported === 'true' && mimetype.substr(0, mimetype.indexOf('/')) !== 'video') || mimetype.substr(0, mimetype.indexOf('/')) === 'image' && mimetype !== 'image/svg+xml') { img.attr('src', OC.filePath('files_sharing', 'ajax', 'publicpreview.php') + '?' + OC.buildQueryString(params)); -- cgit v1.2.3