mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
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
47e28d88f4
commit
703fca8ec6
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue