summaryrefslogtreecommitdiffstats
path: root/apps/comments/lib/Search/LegacyProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/comments/lib/Search/LegacyProvider.php')
-rw-r--r--apps/comments/lib/Search/LegacyProvider.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/comments/lib/Search/LegacyProvider.php b/apps/comments/lib/Search/LegacyProvider.php
index cba48678e8b..d22caad7e3d 100644
--- a/apps/comments/lib/Search/LegacyProvider.php
+++ b/apps/comments/lib/Search/LegacyProvider.php
@@ -31,6 +31,7 @@ use OCP\Files\Node;
use OCP\Files\NotFoundException;
use OCP\IUser;
use OCP\Search\Provider;
+use OCP\Comments\ICommentsManager;
use function count;
class LegacyProvider extends Provider {
@@ -43,7 +44,7 @@ class LegacyProvider extends Provider {
* @since 7.0.0
*/
public function search($query): array {
- $cm = \OC::$server->getCommentsManager();
+ $cm = \OC::$server->get(ICommentsManager::class);
$us = \OC::$server->getUserSession();
$user = $us->getUser();