aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorAndrew Summers <18727110+summersab@users.noreply.github.com>2023-08-29 17:33:36 -0500
committerAndrew Summers <18727110+summersab@users.noreply.github.com>2023-09-01 16:43:04 -0500
commit2258058fd6cbe72fcf2cdf4142ce564701befcc1 (patch)
tree24c938cbf7333f7ad41960302221ca4336988ccd /lib/private
parente2303d0cc1166e95b65753f26d46c544df339e86 (diff)
downloadnextcloud-server-2258058fd6cbe72fcf2cdf4142ce564701befcc1.tar.gz
nextcloud-server-2258058fd6cbe72fcf2cdf4142ce564701befcc1.zip
Refactor `OC\Server::getAvatarManager
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
Diffstat (limited to 'lib/private')
-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 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);