Skip to content

Commit

Permalink
Refactor `OC\Server::getAvatarManager
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
  • Loading branch information
summersab committed Sep 1, 2023
1 parent e2303d0 commit 2258058
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 2258058

Please sign in to comment.