From 2258058fd6cbe72fcf2cdf4142ce564701befcc1 Mon Sep 17 00:00:00 2001 From: Andrew Summers <18727110+summersab@users.noreply.github.com> Date: Tue, 29 Aug 2023 17:33:36 -0500 Subject: Refactor `OC\Server::getAvatarManager Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com> --- lib/private/User/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private') diff --git a/lib/private/User/User.php b/lib/private/User/User.php index d1185e17aef..3362367fff1 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -576,7 +576,7 @@ class User implements IUser { public function getAvatarImage($size) { // delay the initialization if (is_null($this->avatarManager)) { - $this->avatarManager = \OC::$server->getAvatarManager(); + $this->avatarManager = \OC::$server->get(IAvatarManager::class); } $avatar = $this->avatarManager->getAvatar($this->uid); -- cgit v1.2.3