aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-12-23 11:05:29 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-23 11:05:29 +0100
commitbb411c75c6a7272f62a8e6b97b92075477694a3c (patch)
tree611b732354f313dd9ea90bfc7cdc43ff39520f18 /lib/private/Share20
parente0bafb7475d34a4788e62c6485b7b090db284242 (diff)
downloadnextcloud-server-bb411c75c6a7272f62a8e6b97b92075477694a3c.tar.gz
nextcloud-server-bb411c75c6a7272f62a8e6b97b92075477694a3c.zip
Move to single share event. Just emit more if needed
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/Manager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 427b7b449ec..9a2b413896b 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -1138,6 +1138,7 @@ class Manager implements IManager {
$deletedShares = array_merge($deletedShares, $deletedChildren);
$provider->delete($child);
+ $this->dispatcher->dispatchTyped(new Share\Events\ShareDeletedEvent($child));
$deletedShares[] = $child;
}
@@ -1168,7 +1169,7 @@ class Manager implements IManager {
$provider = $this->factory->getProviderForType($share->getShareType());
$provider->delete($share);
- $this->dispatcher->dispatchTyped(new Share\Events\ShareDeletedEvent($share, $deletedShares));
+ $this->dispatcher->dispatchTyped(new Share\Events\ShareDeletedEvent($share));
// All the deleted shares caused by this delete
$deletedShares[] = $share;