diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-06-16 11:34:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 11:34:12 +0200 |
commit | 6b60495d82b62a02b14986ca34041e8fc6b63cd6 (patch) | |
tree | 9903ae02db6ec9d98c671a23d241bf744c2c6bd7 /lib | |
parent | 0a9a5f006a94645d409748bf56b818c87e496e75 (diff) | |
parent | be42a1323567183ec1e584c9cedd9b68fc2dc42b (diff) | |
download | nextcloud-server-6b60495d82b62a02b14986ca34041e8fc6b63cd6.tar.gz nextcloud-server-6b60495d82b62a02b14986ca34041e8fc6b63cd6.zip |
Merge pull request #27514 from nextcloud/fix/share_activity
Fix share activity dispatch
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index b9ed2f4c39a..b5e1b944bc5 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -107,6 +107,8 @@ class Manager implements IManager { private $sharingDisabledForUsersCache; /** @var EventDispatcherInterface */ private $legacyDispatcher; + /** @var LegacyHooks */ + private $legacyHooks; /** @var IMailer */ private $mailer; /** @var IURLGenerator */ @@ -149,6 +151,9 @@ class Manager implements IManager { $this->rootFolder = $rootFolder; $this->legacyDispatcher = $legacyDispatcher; $this->sharingDisabledForUsersCache = new CappedMemoryCache(); + // The constructor of LegacyHooks registers the listeners of share events + // do not remove if those are not properly migrated + $this->legacyHooks = new LegacyHooks($this->legacyDispatcher); $this->mailer = $mailer; $this->urlGenerator = $urlGenerator; $this->defaults = $defaults; |