|
|
|
|
@ -11,6 +11,7 @@ use OC\Files\Mount\MoveableMount;
|
|
|
|
|
use OC\KnownUser\KnownUserService;
|
|
|
|
|
use OC\Share20\Exception\ProviderException;
|
|
|
|
|
use OCA\Files_Sharing\AppInfo\Application;
|
|
|
|
|
use OCA\Files_Sharing\SharedStorage;
|
|
|
|
|
use OCP\EventDispatcher\IEventDispatcher;
|
|
|
|
|
use OCP\Files\File;
|
|
|
|
|
use OCP\Files\Folder;
|
|
|
|
|
@ -570,7 +571,7 @@ class Manager implements IManager {
|
|
|
|
|
// No sense in checking if the method is not there.
|
|
|
|
|
if (method_exists($share, 'setParent')) {
|
|
|
|
|
$storage = $share->getNode()->getStorage();
|
|
|
|
|
if ($storage->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
|
|
|
|
|
if ($storage->instanceOfStorage(SharedStorage::class)) {
|
|
|
|
|
/** @var \OCA\Files_Sharing\SharedStorage $storage */
|
|
|
|
|
$share->setParent($storage->getShareId());
|
|
|
|
|
}
|
|
|
|
|
|