mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix previews in shared folders
This commit is contained in:
parent
03eedb58fc
commit
edd38e5948
1 changed files with 2 additions and 2 deletions
|
|
@ -39,8 +39,8 @@ class Helper
|
|||
}
|
||||
|
||||
if($file['isPreviewAvailable']) {
|
||||
$relativePath = substr($file['path'], 6);
|
||||
return \OC_Helper::previewIcon($relativePath);
|
||||
$pathForPreview = $file['directory'] . '/' . $file['name'];
|
||||
return \OC_Helper::previewIcon($pathForPreview);
|
||||
}
|
||||
return \OC_Helper::mimetypeIcon($file['mimetype']);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue