summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Federation/CloudFederationProviderManager.php3
-rw-r--r--lib/public/Federation/ICloudFederationProviderManager.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Federation/CloudFederationProviderManager.php b/lib/private/Federation/CloudFederationProviderManager.php
index 2776ad8cac8..10d28d0287d 100644
--- a/lib/private/Federation/CloudFederationProviderManager.php
+++ b/lib/private/Federation/CloudFederationProviderManager.php
@@ -145,7 +145,8 @@ class CloudFederationProviderManager implements ICloudFederationProviderManager
]);
if ($response->getStatusCode() === Http::STATUS_CREATED) {
- return true;
+ $result = json_decode($response->getBody(), true);
+ return (is_array($result)) ? $result : [];
}
} catch (\Exception $e) {
diff --git a/lib/public/Federation/ICloudFederationProviderManager.php b/lib/public/Federation/ICloudFederationProviderManager.php
index 94bbe3ed214..f1e932388bf 100644
--- a/lib/public/Federation/ICloudFederationProviderManager.php
+++ b/lib/public/Federation/ICloudFederationProviderManager.php
@@ -77,7 +77,7 @@ interface ICloudFederationProviderManager {
* send federated share
*
* @param ICloudFederationShare $share
- * @return bool
+ * @return mixed
*
* @since 14.0.0
*/