diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-05-29 16:21:13 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 11:29:28 +0200 |
commit | 8889e14c7cb848634895d8bbdedd13194c37301c (patch) | |
tree | 75f54fd99948e7b3d92ba3028dcdf29477b6630c /apps/federatedfilesharing/lib/FederatedShareProvider.php | |
parent | bbce8c3ea1c73726f233961fe7bdb16b8a08bb67 (diff) | |
download | nextcloud-server-8889e14c7cb848634895d8bbdedd13194c37301c.tar.gz nextcloud-server-8889e14c7cb848634895d8bbdedd13194c37301c.zip |
implement accept share notification
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/federatedfilesharing/lib/FederatedShareProvider.php')
-rw-r--r-- | apps/federatedfilesharing/lib/FederatedShareProvider.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index ecc1e1710b8..07597cae8e5 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -30,6 +30,7 @@ namespace OCA\FederatedFileSharing; use OC\Share20\Share; +use OCP\Federation\Exceptions\ShareNotFoundException; use OCP\Federation\ICloudIdManager; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\Files\Folder; @@ -708,13 +709,13 @@ class FederatedShareProvider implements IShareProvider { $cursor->closeCursor(); if ($data === false) { - throw new ShareNotFound(); + throw new ShareNotFoundException(); } try { $share = $this->createShareObject($data); } catch (InvalidShare $e) { - throw new ShareNotFound(); + throw new ShareNotFoundException(); } return $share; |