@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use OCA\FederatedFileSharing\AddressHandler; |
| 33 | 33 | use OCA\FederatedFileSharing\FederatedShareProvider; |
| 34 | 34 | use OCA\FederatedFileSharing\Notifications; |
| 35 | -use OCA\FederatedFileSharing\OCM\CloudFederationProvider; |
|
| 36 | 35 | use OCA\FederatedFileSharing\TokenHandler; |
| 37 | 36 | use OCA\ShareByMail\Settings\SettingsManager; |
| 38 | 37 | use OCA\ShareByMail\ShareByMailProvider; |
@@ -247,8 +247,7 @@ |
||
| 247 | 247 | return new JSONResponse($e->getReturnMessage(), Http::STATUS_BAD_REQUEST); |
| 248 | 248 | } catch (AuthenticationFailedException $e) { |
| 249 | 249 | return new JSONResponse(["message" => "RESOURCE_NOT_FOUND"], Http::STATUS_FORBIDDEN); |
| 250 | - } |
|
| 251 | - catch (\Exception $e) { |
|
| 250 | + } catch (\Exception $e) { |
|
| 252 | 251 | return new JSONResponse( |
| 253 | 252 | ['message' => 'Internal error at ' . $this->urlGenerator->getBaseUrl()], |
| 254 | 253 | Http::STATUS_BAD_REQUEST |
@@ -29,7 +29,6 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | namespace OCA\FederatedFileSharing\Controller; |
| 31 | 31 | |
| 32 | -use OCA\Files_Sharing\Activity\Providers\RemoteShares; |
|
| 33 | 32 | use OCA\FederatedFileSharing\AddressHandler; |
| 34 | 33 | use OCA\FederatedFileSharing\FederatedShareProvider; |
| 35 | 34 | use OCA\FederatedFileSharing\Notifications; |
@@ -39,7 +38,6 @@ discard block |
||
| 39 | 38 | use OCP\AppFramework\OCS\OCSForbiddenException; |
| 40 | 39 | use OCP\AppFramework\OCS\OCSNotFoundException; |
| 41 | 40 | use OCP\AppFramework\OCSController; |
| 42 | -use OCP\Constants; |
|
| 43 | 41 | use OCP\Federation\Exceptions\ProviderCouldNotAddShareException; |
| 44 | 42 | use OCP\Federation\Exceptions\ProviderDoesNotExistsException; |
| 45 | 43 | use OCP\Federation\Exceptions\ShareNotFoundException; |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCA\FederatedFileSharing\AddressHandler; |
| 28 | 28 | use OCA\FederatedFileSharing\FederatedShareProvider; |
| 29 | 29 | use OCP\Activity\IManager as IActivityManager; |
| 30 | -use OCP\Activity\IManager; |
|
| 31 | 30 | use OCP\App\IAppManager; |
| 32 | 31 | use OCP\Constants; |
| 33 | 32 | use OCP\Federation\Exceptions\ActionNotSupportedException; |