Skip to content
Next Next commit
Set proper share type when converting link shares to federated shares
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed May 26, 2020
commit 5b74da3a87545daa07a8011f7f191fdb3413870d
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
use OCP\IUserSession;
use OCP\Share\IManager;
use OCP\Util;
use OCP\Share\IShare;

/**
* Class MountPublicLinkController
Expand Down Expand Up @@ -161,6 +162,7 @@ public function createFederatedShare($shareWith, $token, $password = '') {
}

$share->setSharedWith($shareWith);
$share->setShareType(IShare::TYPE_REMOTE);

try {
$this->federatedShareProvider->create($share);
Expand Down