mirror of
https://github.com/nextcloud/server.git
synced 2024-08-26 05:54:48 +02:00
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>
This commit is contained in:
parent
f8de12c014
commit
ec8ab83ea5
@ -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 New Issue
Block a user