Skip to content
Snippets Groups Projects
Commit efe7c407 authored by Björn Schießle's avatar Björn Schießle
Browse files

fix path reconstruction for reshares

parent 40231c08
Branches
No related tags found
No related merge requests found
......@@ -318,8 +318,8 @@ class Hooks {
// get the parent from current share
$parent = $util->getShareParent($params['parent']);
// if parent is file the it is an 1:1 share
if ($parent['item_type'] === 'file') {
// if parent has the same type than the child it is a 1:1 share
if ($parent['item_type'] === $params['itemType']) {
// prefix path with Shared
$path = '/Shared' . $parent['file_target'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment