Skip to content
Snippets Groups Projects
Commit 6523960d authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #6554 from owncloud/fix_5982

fix preview for reshared file
parents dbbd99db c90e3e4f
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment