summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-12-24 04:03:20 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-12-24 04:03:20 -0800
commit6523960de91ec4dc0f69b3cd30a4fee323417f18 (patch)
treef50c8f6a1bc6cfb132b47c6e2ddc255ee02e7c5f /apps
parentdbbd99db0929b3dfdc4a56ee8b93e5447ad36265 (diff)
parentc90e3e4f5bba3f75e3ada0f535532d21dc9b37be (diff)
downloadnextcloud-server-6523960de91ec4dc0f69b3cd30a4fee323417f18.tar.gz
nextcloud-server-6523960de91ec4dc0f69b3cd30a4fee323417f18.zip
Merge pull request #6554 from owncloud/fix_5982
fix preview for reshared file
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/ajax/publicpreview.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/publicpreview.php b/apps/files_sharing/ajax/publicpreview.php
index 8c3085f1589..54a9806e8bf 100644
--- a/apps/files_sharing/ajax/publicpreview.php
+++ b/apps/files_sharing/ajax/publicpreview.php
@@ -36,7 +36,9 @@ if(!isset($linkedItem['uid_owner']) || !isset($linkedItem['file_source'])) {
exit;
}
-$userId = $linkedItem['uid_owner'];
+$rootLinkItem = OCP\Share::resolveReShare($linkedItem);
+$userId = $rootLinkItem['uid_owner'];
+
\OC_Util::setupFS($userId);
\OC\Files\Filesystem::initMountPoints($userId);
$view = new \OC\Files\View('/' . $userId . '/files');