diff options
author | Julius Härtl <jus@bitgrid.net> | 2024-06-18 14:11:32 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-06-26 18:13:07 +0200 |
commit | 9713dd3fa990c5dabfa07b1049ac1a8a0f1edb27 (patch) | |
tree | a03f5b678a4670c8d49f62e852c1e3a4c3a36bfe /lib/private/Comments | |
parent | 9b05759c03f304a518b37cabfcc2fd7cc4fa4fef (diff) | |
download | nextcloud-server-9713dd3fa990c5dabfa07b1049ac1a8a0f1edb27.tar.gz nextcloud-server-9713dd3fa990c5dabfa07b1049ac1a8a0f1edb27.zip |
chore: Move comments event handler to use proper event dispatcher
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Comments')
-rw-r--r-- | lib/private/Comments/Manager.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index e3d40f2d965..21ff5322f23 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -16,6 +16,7 @@ use OCP\Comments\ICommentsEventHandler; use OCP\Comments\ICommentsManager; use OCP\Comments\NotFoundException; use OCP\DB\QueryBuilder\IQueryBuilder; +use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\FileInfo; use OCP\Files\Folder; use OCP\Files\IRootFolder; @@ -49,6 +50,7 @@ class Manager implements ICommentsManager { protected IEmojiHelper $emojiHelper, protected IInitialStateService $initialStateService, protected IRootFolder $rootFolder, + protected IEventDispatcher $eventDispatcher, ) { } @@ -1529,6 +1531,7 @@ class Manager implements ICommentsManager { foreach ($entities as $entity) { $entity->handle($event); } + $this->eventDispatcher->dispatchTyped($event); } /** |