Merge pull request #10569 from nextcloud/custom-avatar-userconfig
get avatar custom status from user config
This commit is contained in:
commit
70dab08dc8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue