diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-01-24 13:06:10 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-24 15:05:38 +0100 |
commit | 0209690d559277cf23c1cbb65b94e3b01d2cb235 (patch) | |
tree | 5872a00f6278317847f8011f446b9a748a02fcd1 /lib | |
parent | 3b35c226ce7ba755ec933b57e008a7748a9a0195 (diff) | |
download | nextcloud-server-0209690d559277cf23c1cbb65b94e3b01d2cb235.tar.gz nextcloud-server-0209690d559277cf23c1cbb65b94e3b01d2cb235.zip |
Make sure we always know for sure if an avatar is generated or not
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Avatar.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php index afa9118c509..cd29017333c 100644 --- a/lib/private/Avatar.php +++ b/lib/private/Avatar.php @@ -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; } |