summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-24 16:19:39 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-24 16:19:39 +0100
commit4bb346a1e6fe2407dd96d35a1d6e30af29ff6432 (patch)
tree4099a922719ad1f4b8956993cd6ebe390b2b6a34 /apps/files_sharing
parent4978a785fa906b4dc9d79aa9251a3f9187c31206 (diff)
parent9a8bdeb7fb2c7128937d1f0c99f18aeea547a31d (diff)
downloadnextcloud-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.php2
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;
}