summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-10 12:20:56 +0200
committerJoas Schilling <coding@schilljs.com>2017-07-10 12:20:56 +0200
commit33cb45d4a3bcb7b78b587f1c733b072967694627 (patch)
tree373aa0b35ec51c66a76dd8ced0b6c0bf61846d0e /apps/federatedfilesharing
parentb69ddfba8be6938d85f4932cf9691f955105c4c5 (diff)
downloadnextcloud-server-33cb45d4a3bcb7b78b587f1c733b072967694627.tar.gz
nextcloud-server-33cb45d4a3bcb7b78b587f1c733b072967694627.zip
Fix owner cloud id in unshare activity
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/lib/Controller/RequestHandlerController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
index 09704047c7b..4f64e6147e1 100644
--- a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
+++ b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
@@ -451,7 +451,7 @@ class RequestHandlerController extends OCSController {
$event = \OC::$server->getActivityManager()->generateEvent();
$event->setApp('files_sharing')
->setType('remote_share')
- ->setSubject(RemoteShares::SUBJECT_REMOTE_SHARE_UNSHARED, [$owner, $path])
+ ->setSubject(RemoteShares::SUBJECT_REMOTE_SHARE_UNSHARED, [$owner->getId(), $path])
->setAffectedUser($user)
->setObject('remote_share', (int)$share['id'], $path);
\OC::$server->getActivityManager()->publish($event);