Merge pull request #10569 from nextcloud/custom-avatar-userconfig

get avatar custom status from user config
This commit is contained in:
Roeland Jago Douma 2018-08-07 20:44:40 +02:00 committed by GitHub
commit 70dab08dc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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';
}
/**