diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-28 11:22:34 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-28 14:14:55 +0100 |
commit | e62ca4ea4fc235d7ec767034a80889b2fa331e97 (patch) | |
tree | 545a37abaf90d57cccbb99fcf660331372a9ffc4 /apps/files_sharing/public.php | |
parent | c61d328ab9696a620b623fb2dfd1622eb0363dc4 (diff) | |
download | nextcloud-server-e62ca4ea4fc235d7ec767034a80889b2fa331e97.tar.gz nextcloud-server-e62ca4ea4fc235d7ec767034a80889b2fa331e97.zip |
Append file etag to preview URLs
Fixes #5534
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 3d02227cb08..6504de84386 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -28,7 +28,7 @@ function determineIcon($file, $sharingRoot, $sharingToken) { $relativePath = substr($file['path'], 6); $relativePath = substr($relativePath, strlen($sharingRoot)); if($file['isPreviewAvailable']) { - return OCP\publicPreview_icon($relativePath, $sharingToken); + return OCP\publicPreview_icon($relativePath, $sharingToken) . '&c=' . $file['etag']; } return OCP\mimetype_icon($file['mimetype']); } |