summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/appinfo
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-05 14:15:32 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-06 16:10:30 +0100
commitab2b3d2755e0b1d54bac84f842426b0b8d3aa006 (patch)
treecf222bd27de5257f893e60b4db2fd1b224dd14f0 /apps/federatedfilesharing/appinfo
parent4fff033c123c7f1fc761547957e9869180c5d8db (diff)
downloadnextcloud-server-ab2b3d2755e0b1d54bac84f842426b0b8d3aa006.tar.gz
nextcloud-server-ab2b3d2755e0b1d54bac84f842426b0b8d3aa006.zip
Fix external sharing loading script
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/federatedfilesharing/appinfo')
-rw-r--r--apps/federatedfilesharing/appinfo/app.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/federatedfilesharing/appinfo/app.php b/apps/federatedfilesharing/appinfo/app.php
index 6e5a1535223..39b47eab656 100644
--- a/apps/federatedfilesharing/appinfo/app.php
+++ b/apps/federatedfilesharing/appinfo/app.php
@@ -23,22 +23,6 @@
*
*/
-use OCA\FederatedFileSharing\Notifier;
use OCA\FederatedFileSharing\AppInfo\Application;
-$app = \OC::$server->query(Application::class);
-$eventDispatcher = \OC::$server->getEventDispatcher();
-
-$manager = \OC::$server->getNotificationManager();
-$manager->registerNotifierService(Notifier::class);
-
-$federatedShareProvider = $app->getFederatedShareProvider();
-
-$eventDispatcher->addListener(
- 'OCA\Files::loadAdditionalScripts',
- function() use ($federatedShareProvider) {
- if ($federatedShareProvider->isIncomingServer2serverShareEnabled()) {
- \OCP\Util::addScript('federatedfilesharing', 'external');
- }
- }
-);
+\OC::$server->query(Application::class);