Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions lib/private/Share/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,29 +282,6 @@ public static function getShareByToken($token, $checkPasswordProtection = true)
return $row;
}

/**
* resolves reshares down to the last real share
* @param array $linkItem
* @return array file owner
*/
public static function resolveReShare($linkItem)
{
if (isset($linkItem['parent'])) {
$parent = $linkItem['parent'];
while (isset($parent)) {
$query = \OC_DB::prepare('SELECT * FROM `*PREFIX*share` WHERE `id` = ?', 1);
$item = $query->execute(array($parent))->fetchRow();
if (isset($item['parent'])) {
$parent = $item['parent'];
} else {
return $item;
}
}
}
return $linkItem;
}


/**
* Get the shared items of item type owned by the current user
* @param string $itemType
Expand Down
10 changes: 0 additions & 10 deletions lib/public/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ public static function getShareByToken($token, $checkPasswordProtection = true)
return \OC\Share\Share::getShareByToken($token, $checkPasswordProtection);
}

/**
* resolves reshares down to the last real share
* @param array $linkItem
* @return array file owner
* @since 6.0.0
*/
public static function resolveReShare($linkItem) {
return \OC\Share\Share::resolveReShare($linkItem);
}


/**
* Get the shared items of item type owned by the current user
Expand Down