aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/User/User.php')
-rw-r--r--lib/private/User/User.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index 580c590e6eb..28dfb741be8 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -40,6 +40,7 @@ use OC\Avatar\AvatarManager;
use OC\Hooks\Emitter;
use OC_Helper;
use OCP\Accounts\IAccountManager;
+use OCP\Comments\ICommentsManager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Group\Events\BeforeUserRemovedEvent;
use OCP\Group\Events\UserRemovedEvent;
@@ -290,8 +291,8 @@ class User implements IUser {
// Delete the user's keys in preferences
\OC::$server->getConfig()->deleteAllUserValues($this->uid);
- \OC::$server->getCommentsManager()->deleteReferencesOfActor('users', $this->uid);
- \OC::$server->getCommentsManager()->deleteReadMarksFromUser($this);
+ \OC::$server->get(ICommentsManager::class)->deleteReferencesOfActor('users', $this->uid);
+ \OC::$server->get(ICommentsManager::class)->deleteReadMarksFromUser($this);
/** @var AvatarManager $avatarManager */
$avatarManager = \OCP\Server::get(AvatarManager::class);