diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-05 14:56:04 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-04-21 14:35:28 +0200 |
commit | 45c3ee7f368d0980fca6729c10f62d7234529733 (patch) | |
tree | b4fa1f6bdff1637882262d733763a13ec72938bf /apps | |
parent | 46bfe383a79bd18c278771e0ad31665e0a7df98e (diff) | |
download | nextcloud-server-45c3ee7f368d0980fca6729c10f62d7234529733.tar.gz nextcloud-server-45c3ee7f368d0980fca6729c10f62d7234529733.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')
-rw-r--r-- | apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php index 64e12fcd251..cfd759a4d19 100644 --- a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php +++ b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php @@ -43,6 +43,7 @@ use OCP\IRequest; use OCP\ISession; use OCP\IUserSession; use OCP\Share\IManager; +use OCP\Share\IShare; /** * Class MountPublicLinkController @@ -155,6 +156,7 @@ class MountPublicLinkController extends Controller { } $share->setSharedWith($shareWith); + $share->setShareType(IShare::TYPE_REMOTE); try { $this->federatedShareProvider->create($share); |