diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-08-07 20:44:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 20:44:40 +0200 |
commit | 70dab08dc8605e24485bc8569138c923069f378a (patch) | |
tree | 65bcc2faac0fe5888ec46d67742b4656fc1eba66 /lib | |
parent | 5685ed4c7d0115ab7ac9bc6c21b5eff507e84fdf (diff) | |
parent | ec8ab83ea57f0a493035260d2775fc535babea4f (diff) | |
download | nextcloud-server-70dab08dc8605e24485bc8569138c923069f378a.tar.gz nextcloud-server-70dab08dc8605e24485bc8569138c923069f378a.zip |
Merge pull request #10569 from nextcloud/custom-avatar-userconfig
get avatar custom status from user config
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Avatar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Avatar.php b/lib/private/Avatar.php index 116f8368e71..d107bb47c52 100644 --- a/lib/private/Avatar.php +++ b/lib/private/Avatar.php @@ -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'; } /** |