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:
commit
1a21524f6f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue