We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d94fa30 + f741191 commit d78f7acCopy full SHA for d78f7ac
1 file changed
lib/private/Share20/Manager.php
@@ -45,6 +45,7 @@
45
use OC\KnownUser\KnownUserService;
46
use OC\Share20\Exception\ProviderException;
47
use OCA\Files_Sharing\AppInfo\Application;
48
+use OCA\Files_Sharing\SharedStorage;
49
use OCP\EventDispatcher\IEventDispatcher;
50
use OCP\Files\File;
51
use OCP\Files\Folder;
@@ -594,7 +595,7 @@ protected function setLinkParent(IShare $share) {
594
595
// No sense in checking if the method is not there.
596
if (method_exists($share, 'setParent')) {
597
$storage = $share->getNode()->getStorage();
- if ($storage->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
598
+ if ($storage->instanceOfStorage(SharedStorage::class)) {
599
/** @var \OCA\Files_Sharing\SharedStorage $storage */
600
$share->setParent($storage->getShareId());
601
}
0 commit comments