summaryrefslogtreecommitdiffstats
path: root/apps
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:28:45 +0200
commit1ed251c6a987db15849b75936575b394cc9732df (patch)
tree03cbb79b739cdc0aa541e1e7ac979ba73dd65f23 /apps
parent509bc4f1eba7065186ed3bfb9601ace45011b3a8 (diff)
downloadnextcloud-server-1ed251c6a987db15849b75936575b394cc9732df.tar.gz
nextcloud-server-1ed251c6a987db15849b75936575b394cc9732df.zip
Fix owner cloud id in unshare activity
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-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);