aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-03-05 14:56:04 +0100
committerJulius Härtl <jus@bitgrid.net>2020-05-26 11:28:41 +0200
commit5b74da3a87545daa07a8011f7f191fdb3413870d (patch)
tree334de069bd189aeac5bc3cb76743d815e2fc8923 /apps/federatedfilesharing/lib
parent17183f0aac47ea38c2ca21a6cd88f8f6de1558d4 (diff)
downloadnextcloud-server-5b74da3a87545daa07a8011f7f191fdb3413870d.tar.gz
nextcloud-server-5b74da3a87545daa07a8011f7f191fdb3413870d.zip
Set proper share type when converting link shares to federated shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r--apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php
index c0c9ce9bc8c..bd3385cfb93 100644
--- a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php
+++ b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php
@@ -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);