diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-24 16:19:39 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-24 16:19:39 +0100 |
commit | 4bb346a1e6fe2407dd96d35a1d6e30af29ff6432 (patch) | |
tree | 4099a922719ad1f4b8956993cd6ebe390b2b6a34 /apps/files_sharing | |
parent | 4978a785fa906b4dc9d79aa9251a3f9187c31206 (diff) | |
parent | 9a8bdeb7fb2c7128937d1f0c99f18aeea547a31d (diff) | |
download | nextcloud-server-4bb346a1e6fe2407dd96d35a1d6e30af29ff6432.tar.gz nextcloud-server-4bb346a1e6fe2407dd96d35a1d6e30af29ff6432.zip |
Merge pull request #20692 from owncloud/federation_auto_add_servers
auto-add ownClouds to the list of trusted servers
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/external/manager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/external/manager.php b/apps/files_sharing/lib/external/manager.php index 93e2cdb540b..020f55c5157 100644 --- a/apps/files_sharing/lib/external/manager.php +++ b/apps/files_sharing/lib/external/manager.php @@ -192,6 +192,8 @@ class Manager { $acceptShare->execute(array(1, $mountPoint, $hash, $id, $this->uid)); $this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'accept'); + \OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $share['remote']]); + //FIXME $this->scrapNotification($share['remote_id']); return true; } |