fix preview for reshared file

This commit is contained in:
Georg Ehrke 2013-12-22 20:27:38 +01:00
parent f60ecfc7fd
commit c90e3e4f5b
1 changed files with 3 additions and 1 deletions

View File

@ -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');