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 41afaa999e
commit 58b5dad875
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

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