]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix owner cloud id in unshare activity 5670/head
authorJoas Schilling <coding@schilljs.com>
Mon, 10 Jul 2017 10:20:56 +0000 (12:20 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 10 Jul 2017 10:28:45 +0000 (12:28 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/federatedfilesharing/lib/Controller/RequestHandlerController.php

index 09704047c7b0375fbe660564e9c62b4810189445..4f64e6147e13885bb5e938b8771c95715bb0b2f3 100644 (file)
@@ -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);