Skip to content

Commit

Permalink
Merge pull request #40114 from summersab/refactor/OC-Server-getAvatar…
Browse files Browse the repository at this point in the history
…Manager

Refactor `OC\Server::getAvatarManager`
  • Loading branch information
blizzz authored Nov 22, 2023
2 parents ba1af2b + 2258058 commit bc1da2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ public function setManagerUids(array $uids): void {
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);
Expand Down

0 comments on commit bc1da2f

Please sign in to comment.