diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-12 14:55:02 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-10-12 15:17:14 +0200 |
commit | 698d4f55f21978972adf2edcef947d04d025ea10 (patch) | |
tree | 4bf24305d313b6e5e95bb6b68e21558bbeb4150b /apps/files_sharing/lib | |
parent | fd452e553165e9fff53bf99d30852681e2e4324b (diff) | |
download | nextcloud-server-698d4f55f21978972adf2edcef947d04d025ea10.tar.gz nextcloud-server-698d4f55f21978972adf2edcef947d04d025ea10.zip |
Expose CLOUD federation for local users as well
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Listener/ShareInteractionListener.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Listener/ShareInteractionListener.php b/apps/files_sharing/lib/Listener/ShareInteractionListener.php index e698d16d823..67c5e04b1e3 100644 --- a/apps/files_sharing/lib/Listener/ShareInteractionListener.php +++ b/apps/files_sharing/lib/Listener/ShareInteractionListener.php @@ -72,6 +72,7 @@ class ShareInteractionListener implements IEventListener { return; } $actor = $this->userManager->get($share->getSharedBy()); + $sharedWith = $this->userManager->get($share->getSharedWith()); if ($actor === null) { $this->logger->warning('Share was not created by a user, can\'t emit interaction event'); return; @@ -80,6 +81,9 @@ class ShareInteractionListener implements IEventListener { switch ($share->getShareType()) { case IShare::TYPE_USER: $interactionEvent->setUid($share->getSharedWith()); + if ($sharedWith !== null) { + $interactionEvent->setFederatedCloudId($sharedWith->getCloudId()); + } break; case IShare::TYPE_EMAIL: $interactionEvent->setEmail($share->getSharedWith()); |