Skip to content

Commit

Permalink
Merge pull request #27514 from nextcloud/fix/share_activity
Browse files Browse the repository at this point in the history
Fix share activity dispatch
  • Loading branch information
juliusknorr authored Jun 16, 2021
2 parents 0a9a5f0 + be42a13 commit 6b60495
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ class Manager implements IManager {
private $sharingDisabledForUsersCache;
/** @var EventDispatcherInterface */
private $legacyDispatcher;
/** @var LegacyHooks */
private $legacyHooks;
/** @var IMailer */
private $mailer;
/** @var IURLGenerator */
Expand Down Expand Up @@ -149,6 +151,9 @@ public function __construct(
$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;
Expand Down

0 comments on commit 6b60495

Please sign in to comment.