Merge pull request #2305 from nextcloud/fix_previews_federated_shares

Fix previews for federated shares
This commit is contained in:
Morris Jobke 2016-11-24 14:37:12 +01:00 committed by GitHub
commit b74b6671c1
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ class GeneratorHelper {
* This is required to create the old view and path
*/
private function getViewAndPath(File $file) {
$owner = $file->getOwner()->getUID();
$absPath = ltrim($file->getPath(), '/');
$owner = explode('/', $absPath)[0];
$userFolder = $this->rootFolder->getUserFolder($owner)->getParent();