summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-12-03 16:03:35 +0100
committerJulius Härtl <jus@bitgrid.net>2020-12-09 13:20:24 +0100
commitf3150f29a7256a502df6990dd9f8126d76fe3a80 (patch)
tree8a203382fef58ebc3374ef3733453b51e47a9967 /lib
parentbac1651380f8330a5660d44d098f427f1cef8b4b (diff)
downloadnextcloud-server-f3150f29a7256a502df6990dd9f8126d76fe3a80.tar.gz
nextcloud-server-f3150f29a7256a502df6990dd9f8126d76fe3a80.zip
Introduce deck share type to ShareAPIController
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/ProviderFactory.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php
index db333ee99a2..9f93df46ac0 100644
--- a/lib/private/Share20/ProviderFactory.php
+++ b/lib/private/Share20/ProviderFactory.php
@@ -345,6 +345,17 @@ class ProviderFactory implements IProviderFactory {
$shares[] = $roomShare;
}
+ foreach ($this->registeredShareProviders as $shareProvider) {
+ /** @var IShareProvider $instance */
+ $instance = $this->serverContainer->get($shareProvider);
+ if (!isset($this->shareProviders[$instance->identifier()])) {
+ $this->shareProviders[$instance->identifier()] = $instance;
+ }
+ $shares[] = $this->shareProviders[$instance->identifier()];
+ }
+
+
+
return $shares;
}
}