Merge pull request #8025 from nextcloud/13-8020

[stable13] Make sure we always know for sure if an avatar is generated or not
This commit is contained in:
Roeland Jago Douma 2018-01-24 16:28:55 +01:00 committed by GitHub
commit 1a21524f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -217,6 +217,11 @@ class Avatar implements IAvatar {
}
if($this->config->getUserValue($this->user->getUID(), 'avatar', 'generated', null) === null) {
$generated = $this->folder->fileExists('generated') ? 'true' : 'false';
$this->config->setUserValue($this->user->getUID(), 'avatar', 'generated', $generated);
}
return $file;
}