Browse Source
Merge pull request #8020 from nextcloud/fix-avatar-migration
Make sure we always know for sure if an avatar is generated or not
pull/8042/head
Morris Jobke
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
lib/private/Avatar.php
|
|
|
@ -234,6 +234,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; |
|
|
|
} |
|
|
|
|
|
|
|
|