fix preview for reshared file
This commit is contained in:
parent
f60ecfc7fd
commit
c90e3e4f5b
|
@ -36,7 +36,9 @@ if(!isset($linkedItem['uid_owner']) || !isset($linkedItem['file_source'])) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$userId = $linkedItem['uid_owner'];
|
$rootLinkItem = OCP\Share::resolveReShare($linkedItem);
|
||||||
|
$userId = $rootLinkItem['uid_owner'];
|
||||||
|
|
||||||
\OC_Util::setupFS($userId);
|
\OC_Util::setupFS($userId);
|
||||||
\OC\Files\Filesystem::initMountPoints($userId);
|
\OC\Files\Filesystem::initMountPoints($userId);
|
||||||
$view = new \OC\Files\View('/' . $userId . '/files');
|
$view = new \OC\Files\View('/' . $userId . '/files');
|
||||||
|
|
Loading…
Reference in New Issue