summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
authorPiotr Filiciak <piotr@filiciak.pl>2016-04-29 12:22:26 +0200
committerPiotr Filiciak <piotr@filiciak.pl>2016-05-15 15:41:02 +0200
commit53437ecced06c5dcff0c2b62b915b6bbf716bccb (patch)
treec55627e0d82bf70a583aaf9e5b5fe17122df4670 /apps/files_sharing/js/public.js
parent7c28f62e20d7864f1fd71bca8b69adf0c01540b8 (diff)
downloadnextcloud-server-53437ecced06c5dcff0c2b62b915b6bbf716bccb.tar.gz
nextcloud-server-53437ecced06c5dcff0c2b62b915b6bbf716bccb.zip
Fix: Bugs in shared link with video #24331
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r--apps/files_sharing/js/public.js2
1 files changed, 1 insertions, 1 deletions
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));