Set proper share type when converting link shares to federated shares

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-03-05 14:56:04 +01:00
parent 47e28d88f4
commit 703fca8ec6
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -48,6 +48,7 @@ use OCP\ISession;
use OCP\IUserSession;
use OCP\Share\IManager;
use OCP\Util;
use OCP\Share\IShare;
/**
* Class MountPublicLinkController
@ -161,6 +162,7 @@ class MountPublicLinkController extends Controller {
}
$share->setSharedWith($shareWith);
$share->setShareType(IShare::TYPE_REMOTE);
try {
$this->federatedShareProvider->create($share);