aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-22 11:43:51 +0100
committerGitHub <noreply@github.com>2023-11-22 11:43:51 +0100
commitbc1da2fa54d842be18b4faddf40fb64cc61d2811 (patch)
tree393d507bb01ea54128f63fc2daafbf67451d9339 /lib/private/User
parentba1af2b22e5409c62ea2bdf7eb0e13c282ed70e8 (diff)
parent2258058fd6cbe72fcf2cdf4142ce564701befcc1 (diff)
downloadnextcloud-server-bc1da2fa54d842be18b4faddf40fb64cc61d2811.tar.gz
nextcloud-server-bc1da2fa54d842be18b4faddf40fb64cc61d2811.zip
Merge pull request #40114 from summersab/refactor/OC-Server-getAvatarManager
Refactor `OC\Server::getAvatarManager`
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index 69ef82f3e85..c62d14d9450 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);