diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-05 16:56:04 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-04-21 15:35:28 +0300 |
commit | 45c3ee7f368d0980fca6729c10f62d7234529733 (patch) | |
tree | b4fa1f6bdff1637882262d733763a13ec72938bf | |
parent | 46bfe383a79bd18c278771e0ad31665e0a7df98e (diff) |
Set proper share type when converting link shares to federated shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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); |