Refactor `OC\Server::getAvatarManager

Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
pull/40114/head
Andrew Summers 1 year ago
parent e2303d0cc1
commit 2258058fd6
No known key found for this signature in database
GPG Key ID: 1E0B639A223E3E2D
  1. 2
      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);

Loading…
Cancel
Save