get avatar custom status from user config

this saves a cache operation because the user config is already cached

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/10569/head
Robin Appelman 6 years ago
parent f8de12c014
commit ec8ab83ea5
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 2
      lib/private/Avatar.php

@ -125,7 +125,7 @@ class Avatar implements IAvatar {
* @return bool
*/
public function isCustomAvatar(): bool {
return !$this->folder->fileExists('generated');
return $this->config->getUserValue($this->user->getUID(), 'avatar', 'generated', 'false') !== 'true';
}
/**

Loading…
Cancel
Save