Merge pull request #2305 from nextcloud/fix_previews_federated_shares
Fix previews for federated shares
This commit is contained in:
commit
b74b6671c1
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue