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:
parent
41afaa999e
commit
58b5dad875
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@ use OCP\IRequest;
|
||||||
use OCP\ISession;
|
use OCP\ISession;
|
||||||
use OCP\IUserSession;
|
use OCP\IUserSession;
|
||||||
use OCP\Share\IManager;
|
use OCP\Share\IManager;
|
||||||
|
use OCP\Share\IShare;
|
||||||
use OCP\Util;
|
use OCP\Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -161,6 +162,7 @@ class MountPublicLinkController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
$share->setSharedWith($shareWith);
|
$share->setSharedWith($shareWith);
|
||||||
|
$share->setShareType(IShare::TYPE_REMOTE);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->federatedShareProvider->create($share);
|
$this->federatedShareProvider->create($share);
|
||||||
|
|
Loading…
Reference in a new issue