summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-08-07 20:44:40 +0200
committerGitHub <noreply@github.com>2018-08-07 20:44:40 +0200
commit70dab08dc8605e24485bc8569138c923069f378a (patch)
tree65bcc2faac0fe5888ec46d67742b4656fc1eba66 /lib
parent5685ed4c7d0115ab7ac9bc6c21b5eff507e84fdf (diff)
parentec8ab83ea57f0a493035260d2775fc535babea4f (diff)
downloadnextcloud-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.php2
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';
}
/**